Exemplo n.º 1
0
 public NewCommand(ClientController clientController,User user)
 {
     InitializeComponent();
     this.clientController = clientController;
     this.user = user;
     init();
 }
Exemplo n.º 2
0
        public ReportCommand(Command command, ClientController clientController)
        {
            InitializeComponent();
            this.command = command;
            this.clientController = clientController;

            init(command);
        }
Exemplo n.º 3
0
 private void btnLogin_Click(object sender, EventArgs e)
 {
     //Login into the application
     user = authController.login(txtUserName.Text, txtPassword.Text);
     if (user != null)
     {
         if (user.Status == 0)
         {
             ClientController clientController = new ClientController();
             Main main=new Main(clientController,user);
             main.Show(this);
             main.FormClosed += new FormClosedEventHandler(adminMain_FormClosed);
             this.Hide();
         }
         else
         {
             AdminController adminController = new AdminController();
             AdminMain adminMain = new AdminMain(adminController);
             adminMain.Show(this);
             adminMain.FormClosed += new FormClosedEventHandler(adminMain_FormClosed);
             this.Hide();
         }
     }
 }
Exemplo n.º 4
0
 public Main(ClientController clientController, User user)
 {
     InitializeComponent();
     this.clientController = clientController;
     this.user = user;
 }