2010-12-14 09:20:33 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Windows.Forms;
|
2010-12-28 12:36:53 +01:00
|
|
|
|
using Nikse.SubtitleEdit.Logic;
|
2010-12-14 09:20:33 +01:00
|
|
|
|
|
|
|
|
|
namespace Nikse.SubtitleEdit.Forms
|
|
|
|
|
{
|
2010-12-28 12:36:53 +01:00
|
|
|
|
public sealed partial class NetworkLogAndInfo : Form
|
2010-12-14 09:20:33 +01:00
|
|
|
|
{
|
|
|
|
|
public NetworkLogAndInfo()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2010-12-28 12:36:53 +01:00
|
|
|
|
Text = Configuration.Settings.Language.NetworkLogAndInfo.Title;
|
|
|
|
|
labelSessionKey.Text = Configuration.Settings.Language.General.SessionKey;
|
|
|
|
|
labelUserName.Text = Configuration.Settings.Language.General.UserName;
|
|
|
|
|
labelWebServiceUrl.Text = Configuration.Settings.Language.General.WebServiceUrl;
|
|
|
|
|
labelLog.Text = Configuration.Settings.Language.NetworkLogAndInfo.Log;
|
|
|
|
|
buttonOK.Text = Configuration.Settings.Language.General.OK;
|
2010-12-14 09:20:33 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal void Initialize(Logic.Networking.NikseWebServiceSession _networkSession)
|
|
|
|
|
{
|
|
|
|
|
textBoxSessionKey.Text = _networkSession.SessionId;
|
|
|
|
|
textBoxUserName.Text = _networkSession.CurrentUser.UserName;
|
|
|
|
|
textBoxWebServiceUrl.Text = _networkSession.WebServiceUrl;
|
|
|
|
|
textBoxLog.Text = _networkSession.GetLog();
|
|
|
|
|
}
|
|
|
|
|
|
2010-12-28 12:36:53 +01:00
|
|
|
|
private void buttonOK_Click(object sender, EventArgs e)
|
2010-12-14 09:20:33 +01:00
|
|
|
|
{
|
|
|
|
|
DialogResult = DialogResult.OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void NetworkLogAndInfo_KeyDown(object sender, KeyEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (e.KeyCode == Keys.Escape)
|
|
|
|
|
DialogResult = DialogResult.Cancel;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|