コード例 #1
0
        public EmployeeGridView(ManagerVisible mv)
        {
            InitializeComponent();
            MV = mv;

            DisplayGrid();
        }
コード例 #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;
        }
コード例 #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;
        }
コード例 #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;
        }
コード例 #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;
        }
コード例 #6
0
        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];
        }
コード例 #7
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];
        }
コード例 #8
0
 public NewEmployee(ManagerVisible man)
 {
     InitializeComponent();
     this.con = new Connection();
     this.MV  = man;
 }