Example #1
0
        public frmManager_v2(frmLogin loginFrame, TblEmployeesDTO emp)
        {
            InitializeComponent();
            this.loginFrame = loginFrame;
            this.emp        = emp;
            presenter       = new EmployeePresenter(this);

            txtEmployeeID.Enabled    = false;
            txtFullname.Enabled      = false;
            txtPassword.Enabled      = false;
            txtRole.Enabled          = false;
            txtStatus.Enabled        = false;
            dgvListEmployee.ReadOnly = true;
            txtCustomerID.Enabled    = false;
            txtCustomerName.Enabled  = false;
            txtAddress.Enabled       = false;
            txtPoint.Enabled         = false;
            txtPoint.Enabled         = false;
            txtPhonenumber.Enabled   = false;
            dgvCustomer.ReadOnly     = true;
            loadAll();
            presenter.LoadCustomers();
            presenter.LoadRevenues(datetimepicker.Value);
        }
Example #2
0
 private void SearchDate(object sender, EventArgs e)
 {
     presenter.LoadRevenues(datetimepicker.Value);
 }