コード例 #1
0
ファイル: Program.cs プロジェクト: oetawan/porder
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            if (configuration.ConfigurationManager.ShowSettingAtStartup)
            {
                SettingForm settingForm = new SettingForm(true);
                settingForm.ShowDialog();
                settingForm.Dispose();
            }

            LoginForm loginForm = new LoginForm();
            if (loginForm.ShowDialog() == DialogResult.OK)
            {
                MainForm mainForm = new MainForm();
                Application.Run(mainForm);
            }
        }
コード例 #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            if (configuration.ConfigurationManager.ShowSettingAtStartup)
            {
                SettingForm settingForm = new SettingForm(true);
                settingForm.ShowDialog();
                settingForm.Dispose();
            }

            LoginForm loginForm = new LoginForm();

            if (loginForm.ShowDialog() == DialogResult.OK)
            {
                MainForm mainForm = new MainForm();
                Application.Run(mainForm);
            }
        }