Пример #1
0
        private void button9_Click(object sender, EventArgs e)
        {
            dashboardUC dash = new dashboardUC(ParentForm.Username);

            dash.BringToFront();
            dash.Show();
            this.Hide();
        }
Пример #2
0
        private void button9_Click(object sender, EventArgs e)
        {
            this.Controls.Remove(productsUC1);
            this.Controls.Remove(servicesUC1);
            this.Controls.Remove(machineUC1);
            this.Controls.Remove(employeeUC1);
            this.Controls.Remove(discountUC1);
            dashboardUC dash = new dashboardUC(ParentForm.Username);

            dash.BringToFront();
            dash.Show();
            this.Hide();
        }