Beispiel #1
0
 private void DisconnectMethod()
 {
     //    this.ConnDisconnButton.Enabled = false;
     _client.Disconnect(abonentCurrent.id);
     _client = null;
     abonentCurrent.status = Status.Offline;
     AbonentList.Items.Clear();
     OutputMessage.ReadOnly = true;
     OutputMessage.Clear();
     SendButton.Enabled     = false;
     InputMessage.ReadOnly  = true;
     AbonentList.Enabled    = false;
     ConnDisconnButton.Text = "Connect";
     InputName.ReadOnly     = false;
     ShowButton.Enabled     = false;
     ForAllCheck.Enabled    = false;
     this.Text = "Login";
     //    this.ConnDisconnButton.Enabled = true;
 }
Beispiel #2
0
        private void DisconnectMethod()
        {
            client.Disconnect(id);
            client = null;
            status = Status.Offline;

            //Метод работы со списком
            DrawAbonentList(userName, status, allAbonents);

            OutputMessage.Enabled = false;
            OutputMessage.Clear();
            SendButton.Enabled     = false;
            InputMessage.Enabled   = false;
            AbonentList.Enabled    = false;
            ConnDisconnButton.Text = "Connect";
            InputName.ReadOnly     = false;
            ShowButton.Enabled     = false;
            ForAllCheck.Enabled    = false;
            this.Text = "Login";
        }