/// <summary> /// Refreshes the icon. /// </summary> public void RefreshIcon() { if (image != null) { Icon = ImageKonverter.ImageToIcon(image); } }
/// <summary> /// Creates the Start Page Tab /// </summary> public void CreateStartPage() { this.startPageWebBrowser = new StartPageWebBrowser(this.CurrentPageUrl, this.CurrentRssUrl); this.startPage = PluginBase.MainForm.CreateCustomDocument(this.startPageWebBrowser); this.startPage.Icon = ImageKonverter.ImageToIcon(this.pluginImage); this.startPage.Disposed += new EventHandler(this.PluginPanelDisposed); this.startPage.Closing += new CancelEventHandler(this.PluginPanelClosing); this.startPage.Text = TextHelper.GetString("Title.StartPage"); }
/// <summary> /// Automaticly updates the document icon /// </summary> private void UpdateDocumentIcon(String file) { if (this.useCustomIcon) { return; } if (!this.IsBrowsable) { this.Icon = IconExtractor.GetFileIcon(file, true); } else { Image image = Globals.MainForm.FindImage("480"); this.Icon = ImageKonverter.ImageToIcon(image); this.useCustomIcon = true; } }
/// <summary> /// Makes the plugin panel top most form of FD /// </summary> private void TopMostButtonClick(Object sender, EventArgs e) { this.topMostButton.Checked = !this.topMostButton.Checked; if (this.topMostButton.Checked) { this.ClosePluginPanel(); this.popupForm = new Form(); this.popupForm.Controls.Add(this); this.popupForm.MinimumSize = new Size(350, 120); this.popupForm.Text = TextHelper.GetString("Title.PluginPanel"); this.popupForm.FormClosed += new FormClosedEventHandler(this.PopupFormClosed); this.popupForm.Icon = ImageKonverter.ImageToIcon(PluginBase.MainForm.FindImage("412")); if (this.Settings.KeepPopupTopMost) { this.popupForm.TopMost = true; } this.popupForm.Show(); } else { this.popupForm.Close(); } }