public FormA() { InitializeComponent(); this.MdiParent = MainClass.mainform; bdcInet.OpenDatabase(MainClass.connStringOnline); GetKC(); try { wc = new NewWatch(DateTime.Now.Date > _One ? (DateTime.Now.Date > _Two ? 33 : 22) : 11); wc.Show(); Fill_1(); if (DateTime.Now.Date > _One) { Fill_2(); } if (DateTime.Now.Date > _Two) { Fill_3(); } } catch (Exception ex) { MessageBox.Show(ex.Message); } wc.Close(); wc = null; bdcInet.CloseDataBase(); }
public void CloseDB() { _bdcInet.CloseDataBase(); }