Пример #1
0
 private void RestoreWindow()
 {
     _txtOfficialName.Text    = "";
     _txtOfficialName.Enabled = true;
     _txtName.Text            = "";
     _ddCountry.SelectedValue = "SE";
     _btnDelete.Enabled       = false;
     _ddClubs.SelectedValue   = NewClubValue;
     _btnSave.Enabled         = false;
     _txtPgInfo.Text          = "";
     _txtBgInfo.Text          = "";
     _ddClubs.Focus();
 }
Пример #2
0
        internal void EnableMe()
        {
            Visible = true;
            Focus();
            _ddServerAddress.Items.Clear();
            _ddServerAddress.Focus();
            _servers = new Hashtable();

            var udpClientThread =
                new Thread(CollectServersViaUdp)
            {
                IsBackground = true
            };

            udpClientThread.Start();

            Thread.Sleep(500);
            _timerSearchServer.Enabled = true;
        }