private void btnDisplay_Click(object sender, EventArgs e) { if (dtpFromDateDefault.Value > dtpToDateDefault.Value) { string str = WorkingContext.LangManager.GetString("frmChooseInOut_Messa1"); string str1 = WorkingContext.LangManager.GetString("frmListReport_thongbao_Title"); //MessageBox.Show("Khoảng thời gian chọn không hợp lệ","Thông báo",MessageBoxButtons.OK,MessageBoxIcon.Error); MessageBox.Show(str, str1, MessageBoxButtons.OK, MessageBoxIcon.Error); } else { //this.Close(); frmChangeTimeInOut frm = new frmChangeTimeInOut(); frm.FromDate = dtpFromDateDefault.Value; frm.ToDate = dtpToDateDefault.Value; frm.Show(); //frm.MdiParent = this; } }
private void btnDisplay_Click(object sender, EventArgs e) { if(dtpFromDateDefault.Value > dtpToDateDefault.Value) { string str = WorkingContext.LangManager.GetString("frmChooseInOut_Messa1"); string str1 = WorkingContext.LangManager.GetString("frmListReport_thongbao_Title"); //MessageBox.Show("Khoảng thời gian chọn không hợp lệ","Thông báo",MessageBoxButtons.OK,MessageBoxIcon.Error); MessageBox.Show(str,str1,MessageBoxButtons.OK,MessageBoxIcon.Error); } else { //this.Close(); frmChangeTimeInOut frm = new frmChangeTimeInOut(); frm.FromDate = dtpFromDateDefault.Value; frm.ToDate = dtpToDateDefault.Value; frm.Show(); //frm.MdiParent = this; } }