mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
1cf971d634
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@206 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
40 lines
1.5 KiB
C#
40 lines
1.5 KiB
C#
using System;
|
|
using System.Windows.Forms;
|
|
using Nikse.SubtitleEdit.Logic;
|
|
|
|
namespace Nikse.SubtitleEdit.Forms
|
|
{
|
|
public sealed partial class NetworkLogAndInfo : Form
|
|
{
|
|
public NetworkLogAndInfo()
|
|
{
|
|
InitializeComponent();
|
|
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;
|
|
}
|
|
|
|
internal void Initialize(Logic.Networking.NikseWebServiceSession _networkSession)
|
|
{
|
|
textBoxSessionKey.Text = _networkSession.SessionId;
|
|
textBoxUserName.Text = _networkSession.CurrentUser.UserName;
|
|
textBoxWebServiceUrl.Text = _networkSession.WebServiceUrl;
|
|
textBoxLog.Text = _networkSession.GetLog();
|
|
}
|
|
|
|
private void buttonOK_Click(object sender, EventArgs e)
|
|
{
|
|
DialogResult = DialogResult.OK;
|
|
}
|
|
|
|
private void NetworkLogAndInfo_KeyDown(object sender, KeyEventArgs e)
|
|
{
|
|
if (e.KeyCode == Keys.Escape)
|
|
DialogResult = DialogResult.Cancel;
|
|
}
|
|
}
|
|
}
|