コード例 #1
0
 private void barButtonItem19_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (BioBLL.CheckConnection())
     {
         this.GetLogin();
     }
     else
     {
         DiaglogFrm.frmConfig frm = new DiaglogFrm.frmConfig();
         frm.ShowDialog(this);
         if (frm.isConnected)
         {
             Application.Restart();
         }
     }
 }
コード例 #2
0
 private void FrmStartup_Load(object sender, EventArgs e)
 {
     if (BioBLL.CheckConnection())
     {
         this.GetLogin();
     }
     else
     {
         DiaglogFrm.frmConfig frm = new DiaglogFrm.frmConfig();
         frm.ShowDialog(this);
         if (frm.isConnected)
         {
             Application.Restart();
         }
     }
 }