public frmPreferences() { InitializeComponent(); foreach (Form form in Application.OpenForms) { if (form.Name == "frmMain") { frm = ((frmMain)form); break; } } wsrv.PreferencesSetCompleted += new krw.PreferencesSetCompletedEventHandler(PreferencesSetCompleted); wsrv.AdminPwSetCompleted += new krw.AdminPwSetCompletedEventHandler(AdminPwSetCompleted); wsrv.WatermarkStatusGetCompleted += new krw.WatermarkStatusGetCompletedEventHandler(WatermarkStatusGetCompleted); wsrv.WatermarkStatusSetCompleted += new krw.WatermarkStatusSetCompletedEventHandler(WatermarkStatusSetCompleted); wsrv.SpecRightClickGetCompleted += new krw.SpecRightClickGetCompletedEventHandler(SpecRightClickGetCompleted); wsrv.SpecRightClickSetCompleted += new krw.SpecRightClickSetCompletedEventHandler(SpecRightClickSetCompleted); wsrv.WebsiteTitlesGetCompleted += new krw.WebsiteTitlesGetCompletedEventHandler(WebsiteTitlesGetCompleted); wsrv.WebsiteTitlesChangeCompleted += new krw.WebsiteTitlesChangeCompletedEventHandler(WebsiteTitlesChangeCompleted); wsrv.ScrollTextGetCompleted += new krw.ScrollTextGetCompletedEventHandler(ScrollTextGetCompleted); wsrv.ScrollTextChangeCompleted += new krw.ScrollTextChangeCompletedEventHandler(ScrollTextChangeCompleted); wsrv.LogoUploadCompleted += new krw.LogoUploadCompletedEventHandler(LogoUploadCompleted); wsrv.LogoDownloadCompleted += new krw.LogoDownloadCompletedEventHandler(LogoDownloadCompleted); wsrv.GoogleAllCompleted += new krw.GoogleAllCompletedEventHandler(GoogleAllCompleted); wsrv.GoogleAddCompleted += new krw.GoogleAddCompletedEventHandler(GoogleAddCompleted); wsrv.GoogleEditCompleted += new krw.GoogleEditCompletedEventHandler(GoogleEditCompleted); wsrv.GoogleEraseCompleted += new krw.GoogleEraseCompletedEventHandler(GoogleEraseCompleted); errProvider = new ErrorProvider(); this.dgvLogoTitles.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178))); }
private void DoExit() { frmMain frm = new frmMain(); frm.DoExit(); }
private void tmrFadeOut_Tick(object sender, EventArgs e) { this.Opacity -= 0.01; if (this.Opacity <= 0.0) { this.Opacity = 0.0; tmrFadeOut.Enabled = false; tmrSysInfo.Enabled = false; tmrLoading.Enabled = false; if (!_shutdown) { this.Hide(); frmMain frm = new frmMain(); frm.Show(); Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.Normal; this.Close(); } else { Environment.Exit(0); } } }