Exemplo n.º 1
0
        /// <summary>
        /// ClickComany
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnCompany_Click(object sender, EventArgs e)
        {
            UC_Company company = new UC_Company();

            this.Controls.Clear();
            this.Controls.Add(company);
        }
Exemplo n.º 2
0
        private void CallPanel(int number)
        {
            switch (number)
            {
            case 1:
                UC_Dashboard dash = new UC_Dashboard();
                this.Controls.Clear();
                this.Controls.Add(dash);
                break;

            case 2:
                UC_Company cc = new UC_Company();
                this.Controls.Clear();
                this.Controls.Add(cc);
                break;
            }
        }