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 FormSystemSetting_Load(object sender, EventArgs e)
        {
            try
            {
                accountSetting.TopLevel = false;
                formAlarm.TopLevel      = false;
                configuration.TopLevel  = false;
                deviceManager.TopLevel  = false;
                onlineSettings.TopLevel = false;
                //sECSSet.TopLevel = false;
                codeSetting.TopLevel     = false;
                formSignalTower.TopLevel = false;
                formDIOSetting.TopLevel  = false;

                tbpAccountSetting.Controls.Add(accountSetting);
                tbpAlarmEventSet.Controls.Add(formAlarm);
                tbpCommandScript.Controls.Add(configuration);
                tbpDeviceManager.Controls.Add(deviceManager);
                tbpOnlineSettings.Controls.Add(onlineSettings);
                //tbpSECSSetting.Controls.Add(sECSSet);
                tbpCodeSetting.Controls.Add(codeSetting);
                tbpSignalTtower.Controls.Add(formSignalTower);
                tbpDIOSetting.Controls.Add(formDIOSetting);

                accountSetting.Show();
                formAlarm.Show();
                configuration.Show();
                deviceManager.Show();
                onlineSettings.Show();
                //sECSSet.Show();
                codeSetting.Show();
                formSignalTower.Show();
                formDIOSetting.Show();
            }
            catch (Exception ex)
            {
                throw new Exception(ex.ToString());
            }
        }