Ejemplo n.º 1
0
 internal void Initialize(Logic.Networking.NikseWebServiceSession networkSession)
 {
     textBoxSessionKey.Text    = networkSession.SessionId;
     textBoxUserName.Text      = networkSession.CurrentUser.UserName;
     textBoxWebServiceUrl.Text = networkSession.WebServiceUrl;
     textBoxLog.Text           = networkSession.GetLog();
 }
Ejemplo n.º 2
0
        internal void Initialize(Logic.Networking.NikseWebServiceSession networkSession)
        {
            _networkSession = networkSession;

            textBoxSessionKey.Text = Configuration.Settings.NetworkSettings.SessionKey;
            if (textBoxSessionKey.Text.Trim().Length < 2)
                textBoxSessionKey.Text = Guid.NewGuid().ToString().Replace("-", string.Empty);

            comboBoxWebServiceUrl.Text = Configuration.Settings.NetworkSettings.WebServiceUrl;
            textBoxUserName.Text = Configuration.Settings.NetworkSettings.UserName;
            if (textBoxUserName.Text.Trim().Length < 2)
                textBoxUserName.Text = Dns.GetHostName();
        }
Ejemplo n.º 3
0
        internal void Initialize(Logic.Networking.NikseWebServiceSession networkSession)
        {
            _networkSession = networkSession;

            textBoxSessionKey.Text = Configuration.Settings.NetworkSettings.SessionKey;
            if (textBoxSessionKey.Text.Trim().Length < 2)
            {
                textBoxSessionKey.Text = Guid.NewGuid().ToString().Replace("-", string.Empty);
            }

            comboBoxWebServiceUrl.Text = Configuration.Settings.NetworkSettings.WebServiceUrl;
            textBoxUserName.Text       = Configuration.Settings.NetworkSettings.UserName;
            if (textBoxUserName.Text.Trim().Length < 2)
            {
                textBoxUserName.Text = Dns.GetHostName();
            }
        }
Ejemplo n.º 4
0
        internal void Initialize(Logic.Networking.NikseWebServiceSession networkSession, string fileName)
        {
            _networkSession = networkSession;
            _fileName       = fileName;

            textBoxSessionKey.Text = Configuration.Settings.NetworkSettings.SessionKey;
            if (textBoxSessionKey.Text.Trim().Length < 2)
            {
                textBoxSessionKey.Text = Guid.NewGuid().ToString().RemoveChar('-');
            }

            comboBoxWebServiceUrl.Text = Configuration.Settings.NetworkSettings.WebApiUrl;
            textBoxUserName.Text       = Configuration.Settings.NetworkSettings.UserName;
            if (textBoxUserName.Text.Trim().Length < 2)
            {
                textBoxUserName.Text = Dns.GetHostName();
            }
        }
Ejemplo n.º 5
0
        internal void Initialize(NikseWebServiceSession networkSession)
        {
            _networkSession = networkSession;
            Text = Configuration.Settings.Language.NetworkChat.Title + " - " + _networkSession.CurrentUser.UserName;

            listViewUsers.Items.Clear();
            foreach (var user in _networkSession.Users)
            {
                AddUser(user);
            }

            listViewChat.Items.Clear();
            foreach (var message in _networkSession.ChatLog)
            {
                AddChatMessage(message.User, message.Message);
                listViewChat.EnsureVisible(listViewChat.Items.Count - 1);
            }
        }
Ejemplo n.º 6
0
        internal void Initialize(NikseWebServiceSession networkSession)
        {
            _networkSession = networkSession;
            Text            = Configuration.Settings.Language.NetworkChat.Title + " - " + _networkSession.CurrentUser.UserName;

            listViewUsers.Items.Clear();
            foreach (var user in _networkSession.Users)
            {
                AddUser(user);
            }

            listViewChat.Items.Clear();
            foreach (var message in _networkSession.ChatLog)
            {
                AddChatMessage(message.User, message.Message);
                listViewChat.EnsureVisible(listViewChat.Items.Count - 1);
            }
        }