Пример #1
0
 private void DisconnectNow()
 {
     // Закрытие соединения
     if (EQGateDLL.Disconnect() != true)
     {
         textBox_EQGateStatus.Text = EQGateDLL.GetEQGateStatus(-1);
         return;
     }
     toolStripStatusLabel_ConnectionStatus.ForeColor = Color.FromName("Red");
     toolStripStatusLabel_ConnectionStatus.Text      = "Отключено";
     groupBox_Connect.Enabled     = true;
     groupBox_OpenSession.Enabled = false;
     groupBox_Disconnect.Enabled  = false;
     button_Connect.Image         = imageList_Main.Images["start.png"];// EqGate.Properties.Resources.start;
 }