Exemplo n.º 1
0
 private void LeaveFormButton_Click(object sender, EventArgs e)
 {
     this.checkLeaveForm();
     if (this.Username.Visible)
     {
         if (leave == false)
         {
             if (deleteflag)
             {
                 this.newLeaveRequest();
             }
             LeaveForm l = new LeaveForm();
             this.Hide();
             l.Show();
         }
         else
         {
             MessageBox.Show("You have already a request pending");
         }
     }
     else
     {
         MessageBox.Show("Please Log in");
     }
 }
Exemplo n.º 2
0
 private void LeaveFormButton_Click(object sender, EventArgs e)
 {
     this.checkLeaveForm();
     if(this.Username.Visible)
     {
         if (leave==false)
         {
             if(deleteflag)
             {
                 this.newLeaveRequest();
             }
             LeaveForm l = new LeaveForm();
             this.Hide();
             l.Show();
         }
         else
         {
             MessageBox.Show("You have already a request pending");
         }
     }
     else
     {
         MessageBox.Show("Please Log in");
     }
 }