protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (DesignMode) { return; } if (EnableTheming) { ThemeDialog(EventArgs.Empty); } if (!HelpButton && ControlBox && !_addedHelp) { IAnkhHelpService helpService = GetService <IAnkhHelpService>(); if (helpService != null) { _addedHelp = true; HelpButton = true; } } LoadPlacement(); }
private void pleaseConfigureLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { IAnkhHelpService help = Context.GetService <IAnkhHelpService>(); if (help != null) { help.RunHelp(this); } }
/// <summary> /// Raises the <see cref="E:System.Windows.Forms.Form.HelpButtonClicked"/> event. /// </summary> /// <param name="e">A <see cref="T:System.ComponentModel.CancelEventArgs"/> that contains the event data.</param> protected override void OnHelpButtonClicked(CancelEventArgs e) { base.OnHelpButtonClicked(e); if (_addedHelp && !e.Cancel) { e.Cancel = true; // Don't go in context help mode IAnkhHelpService helpService = GetService <IAnkhHelpService>(); helpService.RunHelp(this); } }