public FormLaserMaint() { InitializeComponent(); scannerIndex = 0; InitTabControl(); InitializeForm(); TmrScannerTest.Enabled = true; TmrScannerTest.Interval = 100; TmrScannerTest.Stop(); }
private void TabCtlLaserMaint_Click(object sender, EventArgs e) { int nIndex = 0; TabControlAdv Tab = sender as TabControlAdv; nIndex = Tab.SelectedTab.TabIndex; if (nIndex == 1) { BtnConfigureSave.Show(); TmrScannerTest.Stop(); } else if (nIndex == 2) { BtnConfigureSave.Hide(); TmrScannerTest.Start(); } }