コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FrmMain"/> class.
        /// </summary>
        public FrmMain()
        {
            this.InitializeComponent();

            this.frmAbout    = new FrmAbout();
            this.Text       += " " + this.frmAbout.PackageVersion;
            this.MinimumSize = new Size(472, 504);

            this.versionChecker
                = new VersionChecker(Properties.Resources.EnvManICO);
            this.versionChecker.VersionChecked
                += new EventHandler <NewVersionEventArgs>(
                       this.VersionChecker_NewVersionChecked);

            this.worker         = new BackgroundWorker();
            this.worker.DoWork += new DoWorkEventHandler(this.WorkerDoWork);

            this.LoadSettings();
        }
コード例 #2
0
ファイル: FrmMain.cs プロジェクト: john-peterson/env-man
        /// <summary>
        /// Initializes a new instance of the <see cref="FrmMain"/> class.
        /// </summary>
        public FrmMain()
        {
            this.InitializeComponent();

            this.frmAbout = new FrmAbout();
            this.Text += " " + this.frmAbout.PackageVersion;
            this.MinimumSize = new Size(472, 504);

            this.versionChecker
                = new VersionChecker(Properties.Resources.EnvManICO);
            this.versionChecker.VersionChecked
                += new EventHandler<NewVersionEventArgs>(
                    this.VersionChecker_NewVersionChecked);

            this.worker = new BackgroundWorker();
            this.worker.DoWork += new DoWorkEventHandler(this.WorkerDoWork);

            this.LoadSettings();
        }