Exemplo n.º 1
0
 public void OpenSession()
 {
     // Открытие сессии
     if (EQGateDLL.OpenSession(comboBox_DB.Text, comboBox_User.Text, maskedTextBox_Password.Text) != true)
     {
         textBox_SessionID.Text = EQGateDLL.SessionID;
         ShowErrorsWarnings(true);                                    // Ошибки/Предупреждения
         button_Open.Image      = imageList_Main.Images["start.png"]; //EqGate.Properties.Resources.start;
         Cursor                 = Cursors.Default;
         textBox_SessionID.Text = EQGateDLL.SessionID;
         return;
     }
     //
     textBox_Session_Info.ForeColor = Color.FromName("Green");
     textBox_Session_Info.Text      = "Готово";
     textBox_SessionID.Text         = EQGateDLL.SessionID;
     groupBox_OpenSession.Enabled   = false;
     groupBox_CloseSession.Enabled  = true;
     groupBox_Disconnect.Enabled    = false;
     textBox_EQGateStatus.Text      = EQGateDLL.GetEQGateStatus(-1);
 }