Esempio n. 1
0
        public AdminPanel()
        {
            InitializeComponent();
            AddUserAdmin addUserAdmin = new AddUserAdmin();

            current = addUserAdmin;
            this.Show(addUserAdmin);
        }
Esempio n. 2
0
        private void addUserButton_Click(object sender, EventArgs e)
        {
            AddUserAdmin addUserAdmin = new AddUserAdmin();

            tableLayoutPanel1.Controls.Remove(current);
            current              = addUserAdmin;
            current.Dock         = DockStyle.Fill;
            current.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            tableLayoutPanel1.Controls.Add(current, 1, 1);
            tableLayoutPanel1.SetColumnSpan(current, 1);
        }