Exemple #1
0
 void Connect()
 {
     if ((Engine.CanConnect() == true) && (Engine.IsConnected() == false) && (Engine.IsWaiting() == false))
     {
         TabMain.SelectAt(0);
         Engine.Connect();
     }
 }
 void ConnectManual()
 {
     if (TableServers.SelectedRows.Count == 1)
     {
         ConnectionInfo s = TableServersController.GetRelatedItem((int)TableServers.SelectedRow);
         if (s.CanConnect())
         {
             Engine.NextServer = s;
             TabMain.SelectAt(0);
             Connect();
         }
     }
 }