예제 #1
0
파일: MainForm.cs 프로젝트: wee2tee/SN_Net
 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 lblPeriodAbsent_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (this.lblPeriodAbsent.Text != "-")
     {
         if (this.main_form.leave_wind == null)
         {
             LeaveWindow wind = new LeaveWindow(this.main_form, this.current_user_from, this.current_user_to, this.current_date_from, this.current_date_to);
             wind.MdiParent = this.main_form;
             wind.Show();
         }
         else
         {
             this.main_form.leave_wind.CrossingCall(this.current_user_from, this.current_user_to, this.current_date_from, this.current_date_to);
             this.main_form.leave_wind.Activate();
         }
     }
 }