public PropertyDialog(IList<IPropertyControlPage> pages, WritableSettings settingsFile, string id, StyleCopCore core, Help helpCallback, params object[] context) { this.pages = pages; this.settingsFile = settingsFile; this.id = id; this.core = core; this.helpCallback = helpCallback; this.context = context; this.InitializeComponent(); this.core.Registry.RestoreWindowPosition(this.id, this, base.Location, base.Size); }
/// <summary> /// Builds the module Help window /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void buttonHelp_Click(object sender, EventArgs e) { try { ThemedForm f = new ThemedForm(); f.Size = new System.Drawing.Size(640, 480); System.Reflection.Assembly target = System.Reflection.Assembly.GetExecutingAssembly(); f.Icon = new System.Drawing.Icon(target.GetManifestResourceStream("PassThru.Resources.newIcon.ico")); f.Text = "Help"; Help uc = new Help(checkedListBoxModules.SelectedItem); uc.Dock = DockStyle.Fill; f.Controls.Add(uc); ColorScheme.SetColorScheme(f); f.Show(); } catch(Exception ne) { LogCenter.WriteErrorLog(ne); } }
/// <summary> /// Initializes a new instance of the PropertyDialog class. /// </summary> /// <param name="pages">The array of pages to display on the property control.</param> /// <param name="settingsFile">The file that contains the settings being edited.</param> /// <param name="id">A unique ID that describes this set of property pages.</param> /// <param name="core">The StyleCop core instance.</param> /// <param name="helpCallback">Callback method for help, or null for no help.</param> /// <param name="context">The context to the send to the property page control.</param> public PropertyDialog( IList<IPropertyControlPage> pages, WritableSettings settingsFile, string id, StyleCopCore core, Help helpCallback, params object[] context) { Param.Assert(pages != null && pages.Count > 0, "pages", "Cannot be null or empty"); Param.Assert(settingsFile != null && settingsFile.Loaded, "settingsFile", "The settings file must be loaded."); Param.AssertValidString(id, "id"); Param.AssertNotNull(core, "core"); Param.Ignore(helpCallback); Param.Ignore(context); this.pages = pages; this.settingsFile = settingsFile; this.id = id; this.core = core; this.helpCallback = helpCallback; this.context = context; this.InitializeComponent(); this.core.Registry.RestoreWindowPosition(this.id, this, this.Location, this.Size); }
private void helpToolStripMenuItem1_Click(object sender, EventArgs e) { Help helpWindow = new Help(); helpWindow.Show(); }
private void ajuda_Click(object sender, EventArgs e) { Help diag = new Help(); diag.ShowDialog(); }