private void btConfig_Click(object sender, EventArgs e) { var configform = new FrmConfig(data); configform.Closed += configform_Closed; configform.ShowDialog(); }
public override void ShowProps() { if (Number > 0) { // отображение формы настройки свойств КП FrmConfig.ShowDialog(AppDirs, Number); } }
/// <summary> /// Отобразить свойства КП /// </summary> public override void ShowProps() { FrmConfig form = new FrmConfig(); form.ConfigDir = AppDirs.ConfigDir; form.LangDir = AppDirs.LangDir; form.KPNum = Number; form.ShowDialog(); }
/// <summary> /// Отобразить свойства КП /// </summary> public override void ShowProps() { if (Number > 0) { // отображение формы настройки свойств КП FrmConfig.ShowDialog(AppDirs, Number); } else { // отображение адресной книги FrmAddressBook.ShowDialog(AppDirs); } }
private bool openConfig() { FrmConfig config; try { config = new FrmConfig(); return(config.ShowDialog() == true); } catch (Exception ex) { throw new Exception("Error opening configuration", ex); } }
private void ShowConfig() { var result = MessageBox.Show("Config file cannot be found. Would you like to create it now?", "Create Config", MessageBoxButtons.YesNo); if (result != DialogResult.Yes) { Application.Exit(); } bool doConfig = true; while (doConfig) { doConfig = false; _frmConfig.ShowDialog(); } }
public static int Main(string[] args) { //Hide the console //var handle = Interop.GetConsoleWindow(); //Interop.ShowWindow(handle, Interop.SW_HIDE); try { if (args.Length == 0) { Console.WriteLine("No arguments received. Launching configuration utility."); var frmConfig = new FrmConfig(); frmConfig.ShowDialog(); frmConfig.StartPosition = FormStartPosition.CenterScreen; return(0); } var parser = new CommandLineParser(args); if (parser.Help) { Console.WriteLine(CommandLineParser.COMMAND_LINE_SYNTAX); Console.ReadLine(); return(1); } if (parser.Id == Guid.Empty) { Console.WriteLine(CommandLineParser.EMPTY_GUID_MESSAGE); Console.ReadLine(); return(1); } var o = new Program(); o.Execute(parser); } catch (Exception e) { Console.WriteLine(e.ToString()); Console.ReadLine(); } return(0); }
/// <summary> /// Отобразить свойства КП /// </summary> public override void ShowProps() { FrmConfig.ShowDialog(AppDirs, Number); }
private void button_Config_Click(object sender, EventArgs e) { FrmConfig config = new FrmConfig(); config.ShowDialog(); }
private void ToolStripMenuItem_Parameter_Click(object sender, EventArgs e) { FrmConfig config = new FrmConfig(); config.ShowDialog(); }
/// <summary> /// Отобразить свойства КП. /// </summary> public override void ShowProps() { FrmConfig.ShowDialog(AppDirs, Number, KPProps?.CmdLine); }
private void FrmMain_Load(object sender, EventArgs e) { FrmConfig config_form = new FrmConfig(); config_form.ShowDialog(); }
private void BtnConfigAvanzada_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { FrmConfig frmConfig = new FrmConfig(); frmConfig.ShowDialog(); }
private void btnConfig_Click(object sender, EventArgs e) { FrmConfig frmConfig = new FrmConfig(); frmConfig.ShowDialog(this); }
private void mnuCaiDat_Click(object sender, EventArgs e) { FrmConfig frm = new FrmConfig(); frm.ShowDialog(); }