Esempio n. 1
0
        public MainForm(ApplicationForm LAppForm)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            _appForm = LAppForm;

            LoadInstances(InstanceManager.LoadConfiguration());
            cbInstance.Text      = _appForm.SelectedInstanceName;
            ShowTrayIcon.Checked = _appForm._configurationUtilitySettings.ShowTrayIcon;
            AppAutoStart.Checked = _appForm._configurationUtilitySettings.AppAutoStart;
        }
Esempio n. 2
0
 static void Main(string[] args)
 {
     Application.ThreadException += new ThreadExceptionEventHandler(ThreadException);
     System.Diagnostics.Process[] processes;
     // See if this is already running
     processes = System.Diagnostics.Process.GetProcessesByName("DAEConfigUtil");
     // There will be 1 running...this one!  But any more, and we just exit.
     if (processes.Length <= 1)
     {
         ApplicationForm appForm;
         if ((args.Length > 0) && (args[0] == SFSilentMode))
         {
             appForm = new ApplicationForm(true);
         }
         else
         {
             appForm = new ApplicationForm(false);
         }
         Application.Run();
     }
 }