コード例 #1
0
 private void leaveSummaryMenuItem_Click(object sender, EventArgs e)
 {
     if (this.leave_wind == null)
     {
         LeaveRangeDialog dlg = new LeaveRangeDialog(this);
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             LeaveWindow wind = new LeaveWindow(this, dlg.user_from, dlg.user_to, dlg.date_from, dlg.date_to);
             wind.MdiParent = this;
             wind.Show();
         }
     }
     else
     {
         this.leave_wind.Activate();
     }
 }
コード例 #2
0
 private void supportStatMenuItem_Click(object sender, EventArgs e)
 {
     if (this.supportstat_wind == null)
     {
         LeaveRangeDialog dlg = new LeaveRangeDialog(this);
         dlg.Text = "กำหนดขอบเขตการแสดงข้อมูลการปฏิบัติงาน(Support)";
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             SupportStatWindow wind = new SupportStatWindow(this, dlg.user_from, dlg.user_to, dlg.date_from, dlg.date_to);
             wind.MdiParent = this;
             wind.Show();
         }
     }
     else
     {
         this.supportstat_wind.Activate();
     }
 }