Пример #1
0
        public static void Main()
        {
            WF wf = WF.Instance;

            wf.program = new Program();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(wf.program);
        }
Пример #2
0
        public Program()
        {
            wf = WF.Instance;
            try {
                wf.settings = new Settings();

                wf.mainForm         = new MainForm();
                wf.mainForm.Closed += new EventHandler(this.OnFormClosed);

                wf.backupSettings = new BackupSettings();
                wf.settingsView   = new SettingsView();

                wf.mainForm.Show();
            } catch (Exception ex) {
                MessageBox.Show(ex.ToString());
                //ExitThread();
            }
            //wf.mainForm.appMsgLabel.Text = "Testing single and \"double\" quotes.";
        }