private void frmMain_Load(object sender, EventArgs e) { this.m_paProcon = this.WindowLoaded(false); string licenseAgreementRevision = "October 20, 2011"; if (this.m_paProcon.LicenseAgreements.Contains(licenseAgreementRevision) == false) { new LicenseAgreement(this.m_paProcon, licenseAgreementRevision).ShowDialog(); } this.SetupStartPage(); this.m_paProcon.Connections.ConnectionAdded += new ConnectionDictionary.ConnectionAlteredHandler(Connections_ConnectionAdded); this.m_paProcon.Connections.ConnectionRemoved += new ConnectionDictionary.ConnectionAlteredHandler(Connections_ConnectionRemoved); this.m_paProcon.ShowNotification += new PRoConApplication.ShowNotificationHandler(m_paProcon_ShowNotification); this.m_paProcon.CurrentLanguageChanged += new PRoConApplication.CurrentLanguageHandler(m_paProcon_CurrentLanguageChanged); this.m_paProcon.OptionsSettings.ShowTrayIconChanged += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_ShowTrayIconChanged); this.m_paProcon.AutoUpdater.CustomDownloadError += new AutoUpdater.CustomDownloadErrorHandler(AutoUpdater_CustomDownloadError); this.m_paProcon.AutoUpdater.DownloadUnzipComplete += new AutoUpdater.DownloadUnzipCompleteHandler(AutoUpdater_DownloadUnzipComplete); this.m_paProcon.AutoUpdater.CheckingUpdates += new AutoUpdater.CheckingUpdatesHandler(m_paProcon_CheckingUpdates); this.m_paProcon.AutoUpdater.NoVersionAvailable += new AutoUpdater.CheckingUpdatesHandler(m_paProcon_NoVersionAvailable); this.m_paProcon.AutoUpdater.VersionChecker.DownloadError += new CDownloadFile.DownloadFileEventDelegate(VersionChecker_DownloadError); this.m_paProcon.AutoUpdater.UpdateDownloading += new AutoUpdater.UpdateDownloadingHandler(m_paProcon_UpdateDownloading); this.m_paProcon.AutoUpdater.GameConfigUpdated += new AutoUpdater.CheckingUpdatesHandler(m_paProcon_GameConfigUpdated); this.m_paProcon.Execute(); if (this.m_paProcon.CustomTitle.Length > 0) { this.Text = this.m_paProcon.CustomTitle; } this.m_frmManageAccounts = new frmManageAccounts(this.m_paProcon, this); this.m_frmOptions = new frmOptions(this.m_paProcon, this); this.WindowState = this.m_paProcon.SavedWindowState; this.Bounds = this.m_paProcon.SavedWindowBounds; this.Refresh(); //foreach (PRoConClient prcClient in this.m_paProcon.Connections) { // this.Connections_ConnectionAdded(prcClient); //} this.m_paProcon.CurrentLanguage = this.m_paProcon.CurrentLanguage; }