Exemplo n.º 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();
     }
 }
Exemplo n.º 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();
         }
     }
 }