コード例 #1
0
ファイル: App.xaml.cs プロジェクト: bftt/NetEnvSwitcher
        public static int Main(string[] args)
        {
            App app = new App();
            app.InitializeComponent();

            try
            {
                StartWindow sw = new StartWindow();
                app.Run(sw);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString(), "ERROR");
                return 1;
            }

            return 0;
        }
コード例 #2
0
ファイル: App.xaml.cs プロジェクト: itsff/NetEnvSwitcher
        public static int Main(string[] args)
        {
            try
            {
                App app = new App();
                app.InitializeComponent();

                app.createConfigDir();
                app.moveFilesToUserConfigDir();

                StartWindow sw = new StartWindow();
                app.Run(sw);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString(), "ERROR");
                return 1;
            }

            return 0;
        }