private void miIncome_Click(object sender, EventArgs e) { MainForm.StopWorkTimer(); #if !DEBUG try { #endif DialogResult res = (new IncomeForm()).ShowDialog(); if (res == DialogResult.Ignore) { #if !DEMO if (new EPasportForm(true).ShowDialog() == DialogResult.OK && !MainForm.MustClose) { _rsb.Run(); } #else DemoErr.DemoNoModuleMsg(); #endif } else if (res == DialogResult.OK && !MainForm.MustClose) { _rsb.Run(); } #if !DEBUG } catch (Exception exc) { MessageBox.Show(exc.Message); _logger.Warn(exc); _rsb.Run(); } #endif MainForm.StartWorkTimer(); }
private void miRabExport_Click(object sender, EventArgs e) { #if !DEMO if (new EPasportForm(true).ShowDialog() == DialogResult.OK && !MainForm.MustClose) { rabStatusBar1.Run(); } #else DemoErr.DemoNoModuleMsg(); #endif }