Пример #1
0
 private void sbtnOK_Click(object sender, EventArgs e)
 {
     Program.lstTranday = Account.UIProviders.UITranday.GetTransactionByAccount(txt_AccountID.Text, dt_DateFrom.DateTime, dt_DateTo.DateTime);
     if (Program.lstTranday != null)
     {
         if (frmTranDayList.CurrentInstance != null)
         {
             frmTranDayList.CurrentInstance.Close();
             frmTranDayList.CurrentInstance.Dispose();
         }
         frmTranDayList ofrm = frmTranDayList.CurrentInstance;
         ofrm.MdiParent = Program.m_frmMain;
         ofrm.Show();
         ofrm.WindowState = FormWindowState.Maximized;
         this.Close();
     }
     else
     {
         MessageBox.Show("Không tìm thấy giao dịch nào", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return;
     }
 }
Пример #2
0
 public frmTranDayList()
 {
     InitializeComponent();
     m_CurrentInstance = this;
 }