SubtitleEdit/src/Forms/NetworkLogAndInfo.cs
niksedk 1cf971d634 Working on localization
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@206 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
2010-12-28 11:36:53 +00:00

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;
}
}
}