Ejemplo n.º 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();
        }
Ejemplo n.º 2
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();
        }