コード例 #1
0
        public Settings(CustomApplicationContext app)
        {
            this.app = app;

            InitializeComponent();
            LoadSettings();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: HammerCar/Screenshot-Saver
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     try
     {
         var applicationContext = new CustomApplicationContext();
         Application.Run(applicationContext);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Screenshot Saver Terminated Unexpectedly",
                         MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }