Beispiel #1
0
 public static FrmConnect GetInstance()
 {
     if (m_sIns == null)
     {
         m_sIns = new FrmConnect();
     }
     return(m_sIns);
 }
Beispiel #2
0
 private void MakeConn()
 {
     if (!m_bIsConnected)
     {
         frmConn = FrmConnect.GetInstance();
         //frmConn.Parent = this;
         if (DialogResult.OK == frmConn.ShowDialog(this))
         {
             m_connector.SetConnectInfo(frmConn.DBHost, frmConn.DBUser, frmConn.DBPassword);
             m_bIsConnected = m_connector.TryConnect();
             SwitchMenu();
         }
     }
 }