Exemple #1
0
        private void btConfig_Click(object sender, EventArgs e)
        {
            var configform = new FrmConfig(data);

            configform.Closed += configform_Closed;
            configform.ShowDialog();
        }
Exemple #2
0
 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();
        }
Exemple #4
0
 /// <summary>
 /// Отобразить свойства КП
 /// </summary>
 public override void ShowProps()
 {
     if (Number > 0)
     {
         // отображение формы настройки свойств КП
         FrmConfig.ShowDialog(AppDirs, Number);
     }
     else
     {
         // отображение адресной книги
         FrmAddressBook.ShowDialog(AppDirs);
     }
 }
Exemple #5
0
        private bool openConfig()
        {
            FrmConfig config;

            try
            {
                config = new FrmConfig();
                return(config.ShowDialog() == true);
            }
            catch (Exception ex)
            {
                throw new Exception("Error opening configuration", ex);
            }
        }
Exemple #6
0
        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();
            }
        }
Exemple #7
0
        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);
        }
Exemple #8
0
 /// <summary>
 /// Отобразить свойства КП
 /// </summary>
 public override void ShowProps()
 {
     FrmConfig.ShowDialog(AppDirs, Number);
 }
Exemple #9
0
        private void button_Config_Click(object sender, EventArgs e)
        {
            FrmConfig config = new FrmConfig();

            config.ShowDialog();
        }
Exemple #10
0
        private void ToolStripMenuItem_Parameter_Click(object sender, EventArgs e)
        {
            FrmConfig config = new FrmConfig();

            config.ShowDialog();
        }
Exemple #11
0
 /// <summary>
 /// Отобразить свойства КП.
 /// </summary>
 public override void ShowProps()
 {
     FrmConfig.ShowDialog(AppDirs, Number, KPProps?.CmdLine);
 }
Exemple #12
0
        private void FrmMain_Load(object sender, EventArgs e)
        {
            FrmConfig config_form = new FrmConfig();

            config_form.ShowDialog();
        }
Exemple #13
0
        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);
        }
Exemple #15
0
        private void mnuCaiDat_Click(object sender, EventArgs e)
        {
            FrmConfig frm = new FrmConfig();

            frm.ShowDialog();
        }