Exemplo n.º 1
0
        private void buttoncreate_Click(object sender, EventArgs e)
        {
            AddAdmin addadmin = new AddAdmin(this);

            addadmin.Show();
            RefreshData();
        }
Exemplo n.º 2
0
        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";
        }