Ejemplo n.º 1
0
 private void tbcSystemSetting_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         if (tbcSystemSetting.SelectedTab == tbcSystemSetting.TabPages["tbpAccountSetting"])
         {
             tbpAccountSetting.Controls.Clear();
             accountSetting.Close();
             accountSetting.Dispose();
             accountSetting          = new FormAccountSetting();
             accountSetting.TopLevel = false;
             tbpAccountSetting.Controls.Add(accountSetting);
             accountSetting.Show();
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.ToString());
     }
 }
Ejemplo n.º 2
0
        private void btnAccountSetting_Click(object sender, EventArgs e)
        {
            FormAccountSetting form = new FormAccountSetting();

            AddForm(form);
        }