示例#1
0
        private void newInvoiceButton_Click(object sender, EventArgs e)
        {
            NewWorkOrderForm newWorkOrder = new NewWorkOrderForm();

            newWorkOrder.Show();
            this.Hide();
        }
示例#2
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();
     }
 }