public EmployeeGridView(ManagerVisible mv) { InitializeComponent(); MV = mv; DisplayGrid(); }
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; }
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; }
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; }
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]; }
public NewEmployee(ManagerVisible man) { InitializeComponent(); this.con = new Connection(); this.MV = man; }