Example #1
0
        private void btnClients_Click(object sender, EventArgs e)
        {
            UC_PrivateClient clients = new UC_PrivateClient();

            this.Controls.Clear();
            this.Controls.Add(clients);
        }
Example #2
0
        private void CallPanel(int number)
        {
            switch (number)
            {
            case 1:
                UC_Clients c1 = new UC_Clients();
                this.Controls.Clear();
                this.Controls.Add(c1);
                break;

            case 2:
                UC_PrivateClient pc = new UC_PrivateClient();
                this.Controls.Clear();
                this.Controls.Add(pc);
                break;
            }
        }