private void buttoncreate_Click(object sender, EventArgs e) { AddAdmin addadmin = new AddAdmin(this); addadmin.Show(); RefreshData(); }
public MainWindow() { InitializeComponent(); InitData(); viewDriversForm = new ViewDrivers(); viewDriversForm.MdiParent = this; viewAdminsForm = new ViewAdmins(); viewAdminsForm.MdiParent = this; viewCustomersForm = new ViewCustomers(); viewCustomersForm.MdiParent = this; addDriver = new AddDriver(viewDriversForm); addDriver.MdiParent = this; addAdmin = new AddAdmin(viewAdminsForm); addAdmin.MdiParent = this; toolStripStatusLabel1.Text = "Manager"; }