public LiveClipboardPreferencesPanel() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); this.columnHeaderFormat.Text = Res.Get(StringId.LCPrefFormat); this.columnHeaderDescription.Text = Res.Get(StringId.LCPrefDescription); this.labelInstalledPlugins.Text = Res.Get(StringId.LCPrefSupportedFormats); this.labelHandledByCaption.Text = Res.Get(StringId.LCPrefHandledBy); this.buttonChange.Text = Res.Get(StringId.LCPrefChangeButton); this.buttonOptions.Text = Res.Get(StringId.LCPrefOptionsButton); this.labelContentTypeCaption.Text = Res.Get(StringId.LCPrefContentType); this.labelNoFormatSelected.Text = Res.Get(StringId.LCPrefNoFormatSelected); this.linkLabelMoreAboutLiveClipboard.Text = Res.Get(StringId.LCPrefMoreAboutLiveClipboard); this.labelCaption.Text = Res.Get(StringId.LCPrefCaption); this.PanelName = Res.Get(StringId.LCPrefPanelName); // set our bitmap PanelBitmap = ResourceHelper.LoadAssemblyResourceBitmap("LiveClipboard.Images.LiveClipboardSmall.png", true); pictureBoxLiveClipboardIcon.Image = ResourceHelper.LoadAssemblyResourceBitmap("LiveClipboard.Images.LiveClipboardIcon.png", true); // paramaterize caption with product name labelCaption.Text = String.Format(CultureInfo.CurrentCulture, labelCaption.Text, ApplicationEnvironment.ProductName); // initialize preferences _liveClipboardPreferences = new LiveClipboardPreferences(); _liveClipboardPreferences.PreferencesModified += new EventHandler(_liveClipboardPreferences_PreferencesModified); // signup for events listViewFormats.SelectedIndexChanged += new EventHandler(listViewFormats_SelectedIndexChanged); linkLabelMoreAboutLiveClipboard.LinkClicked += new LinkLabelLinkClickedEventHandler(linkLabelMoreAboutLiveClipboard_LinkClicked); // initialize list of formats PopulateFormatList(); // select first item if possible if (listViewFormats.Items.Count > 0) { listViewFormats.Items[0].Selected = true; } // update the details pane UpdateDetailsPane(); labelContentType.RightToLeft = System.Windows.Forms.RightToLeft.No; if (BidiHelper.IsRightToLeft) { labelContentType.TextAlign = ContentAlignment.MiddleRight; } }
public LiveClipboardPreferencesPanel() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); this.columnHeaderFormat.Text = Res.Get(StringId.LCPrefFormat); this.columnHeaderDescription.Text = Res.Get(StringId.LCPrefDescription); this.labelInstalledPlugins.Text = Res.Get(StringId.LCPrefSupportedFormats); this.labelHandledByCaption.Text = Res.Get(StringId.LCPrefHandledBy); this.buttonChange.Text = Res.Get(StringId.LCPrefChangeButton); this.buttonOptions.Text = Res.Get(StringId.LCPrefOptionsButton); this.labelContentTypeCaption.Text = Res.Get(StringId.LCPrefContentType); this.labelNoFormatSelected.Text = Res.Get(StringId.LCPrefNoFormatSelected); this.linkLabelMoreAboutLiveClipboard.Text = Res.Get(StringId.LCPrefMoreAboutLiveClipboard); this.labelCaption.Text = Res.Get(StringId.LCPrefCaption); this.PanelName = Res.Get(StringId.LCPrefPanelName); // set our bitmap PanelBitmap = ResourceHelper.LoadAssemblyResourceBitmap("LiveClipboard.Images.LiveClipboardSmall.png", true); pictureBoxLiveClipboardIcon.Image = ResourceHelper.LoadAssemblyResourceBitmap("LiveClipboard.Images.LiveClipboardIcon.png", true); // paramaterize caption with product name labelCaption.Text = String.Format(CultureInfo.CurrentCulture, labelCaption.Text, ApplicationEnvironment.ProductName); // initialize preferences _liveClipboardPreferences = new LiveClipboardPreferences(); _liveClipboardPreferences.PreferencesModified += new EventHandler(_liveClipboardPreferences_PreferencesModified); // signup for events listViewFormats.SelectedIndexChanged += new EventHandler(listViewFormats_SelectedIndexChanged); linkLabelMoreAboutLiveClipboard.LinkClicked += new LinkLabelLinkClickedEventHandler(linkLabelMoreAboutLiveClipboard_LinkClicked); // initialize list of formats PopulateFormatList(); // select first item if possible if (listViewFormats.Items.Count > 0) listViewFormats.Items[0].Selected = true; // update the details pane UpdateDetailsPane(); labelContentType.RightToLeft = System.Windows.Forms.RightToLeft.No; if (BidiHelper.IsRightToLeft) labelContentType.TextAlign = ContentAlignment.MiddleRight; }