예제 #1
0
 private void newInvoiceButton_Click(object sender, EventArgs e)
 {
     if (Engine.ActiveUser.usertype.ToLower() == "occupant")
     {
         NewWorkOrderForm newWorkOrder = new NewWorkOrderForm();
         newWorkOrder.Show();
         this.Hide();
     }
     if (Engine.ActiveUser.usertype.ToLower() == "office worker")
     {
         OfficeWorkOrder newOfficeWorkOrder = new OfficeWorkOrder();
         newOfficeWorkOrder.Show();
         this.Hide();
     }
     if (Engine.ActiveUser.usertype.ToLower() == "administrator")
     {
         Forms.AdminNewInvoiceCheck admin = new Forms.AdminNewInvoiceCheck();
         admin.Show();
         this.Hide();
     }
 }
예제 #2
0
 private void showOfficeWorkOrderForm_Click(object sender, EventArgs e)
 {
     owof.Show();
     this.Close();
 }