public EmployeeGridView(ManagerVisible mv)
        {
            InitializeComponent();
            MV = mv;

            DisplayGrid();
        }
Ejemplo n.º 2
0
        private void btnViewCustomer_Click(object sender, EventArgs e)
        {
            var FormVisibilty = new ManagerVisible(this.Visibility);
            var custview      = new CustomerGrid(FormVisibilty);

            this.Visible     = false;
            custview.Visible = true;
        }
Ejemplo n.º 3
0
        private void btnViewEmp_Click(object sender, EventArgs e)
        {
            var FormVisibilty = new ManagerVisible(this.Visibility);
            var empView       = new EmployeeGrid(FormVisibilty);

            this.Visible    = false;
            empView.Visible = true;
        }
Ejemplo n.º 4
0
        private void btnNewEmp_Click(object sender, EventArgs e)
        {
            var FormVisibilty = new ManagerVisible(this.Visibility);
            var ne            = new NewEmployee(FormVisibilty);

            ne.Visible   = true;
            this.Visible = false;
        }
Ejemplo n.º 5
0
        private void metroButton3_Click(object sender, EventArgs e)
        {
            var FormVisibilty = new ManagerVisible(this.Visibility);
            var empgrid       = new EmployeeGridView(FormVisibilty);

            empgrid.Visible = true;
            this.Visible    = false;
        }
        public CustomerGrid(ManagerVisible man)
        {
            InitializeComponent();
            this.con = new Connection();
            this.MV  = man;
            var custrepo = new CustomerRepository();

            this.Ds = custrepo.Display();
            this.gridCustomer.DataSource = this.Ds.Tables[0];
        }
        public EmployeeGrid(ManagerVisible man)
        {
            InitializeComponent();
            this.con = new Connection();
            this.MV  = man;
            var emprepo = new EmployeeRepository();

            this.Ds = emprepo.Display();
            this.gridEmployee.DataSource = this.Ds.Tables[0];
        }
Ejemplo n.º 8
0
 public NewEmployee(ManagerVisible man)
 {
     InitializeComponent();
     this.con = new Connection();
     this.MV  = man;
 }