本文整理汇总了C#中Help类的典型用法代码示例。如果您正苦于以下问题:C# Help类的具体用法?C# Help怎么用?C# Help使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Help类属于命名空间,在下文中一共展示了Help类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ekle
public ekle(string firma, string firmad, int i, string firmakod, string urunkod="",string kategorikod = "",string turkod="")
{
InitializeComponent();
fkod = firmakod;
ukod = urunkod;
kkod = kategorikod;
tkod = turkod;
DB = new Database();
HP = new Help();
panel1.Controls.Clear();
if (i == 1)
{
groupBox1.Dock = DockStyle.Fill;
panel1.Controls.Add(groupBox1);
}
else if (i == 2)
{
groupBox2.Dock = DockStyle.Fill;
panel1.Controls.Add(groupBox2);
}
else
{
groupBox3.Dock = DockStyle.Fill;
panel1.Controls.Add(groupBox3);
}
}
示例2: ExecuteAction
public static void ExecuteAction(string actionName, IList<string> parameters)
{
IAction actionInstance;
if (ActionExists(actionName))
{
actionInstance = GetActionInstance(actionName);
}
else
{
actionInstance = new Help();
parameters.Clear();
}
if (parameters.Count != actionInstance.ParametersCount)
{
// -1 signifie un nombre illimité d'arguments (mais pas 0)
if (actionInstance.ParametersCount != -1)
{
string puralIfNeeded = actionInstance.ParametersCount != 1 ? "s" : "";
Console.WriteLine(
"This action require {0} parameter{1}.",
actionInstance.ParametersCount,
puralIfNeeded);
return;
}
}
actionInstance.Execute(parameters);
}
示例3: aboutSudokuToolStripMenuItem_Click
private void aboutSudokuToolStripMenuItem_Click(object sender,
EventArgs e)
{
Form help = new Help(2);
help.ShowDialog(this);
help = null;
}
示例4: help_Click
private void help_Click(object sender, EventArgs e)
{
this.Hide();
Help help = new Help(this);
help.SetDesktopLocation(this.DesktopLocation.X, this.DesktopLocation.Y);
help.Show();
}
示例5: ShowHelp
/// <summary>
/// Show the help form for a given page
/// </summary>
/// <param name="page"></param>
public static void ShowHelp(Help.HelpPage page)
{
// Check if the help form exists, otherwise create a new one
if (help == null || !help.Visible) help = new Help();
// Set the form to show the right tab, then show it in the front
help.ShowPage(page);
}
示例6: ShowHelp
public void ShowHelp(Help h, string url)
{
this.Show();
if (string.IsNullOrEmpty(url))
h.Navigate();
else
h.Navigate(url);
}
示例7: MethodEditor
/// <summary>
/// Instantiates a new instance of the <see cref="MethodEditor"/> class
/// </summary>
/// <param name="parentManager"></param>
/// <param name="specialCharacters"></param>
/// <param name="help"></param>
public MethodEditor(MacroManager parentManager, SpecialCharacters specialCharacters, Help help)
{
InitializeComponent();
this._macroManager = parentManager;
this._specialCharacters = specialCharacters;
this._help = help;
this._methodRegister = new MacroMethodRegister();
}
示例8: button4_Click
private void button4_Click(object sender, EventArgs e)
{
if (helpForm == null || !helpForm.Visible)
{
helpForm = new Help();
helpForm.Show();
helpForm.BringToFront();
}
}
示例9: ShouldLoadHelpAndPrintToTextWriter
public void ShouldLoadHelpAndPrintToTextWriter()
{
var output = new StringWriter();
var printer = new Help(output);
printer.PrintHelp();
Assert.That(output.ToString().Contains("confgen"));
}
示例10: ShowHelp
public static void ShowHelp(Help h, string url)
{
if (h == null || h.IsDisposed)
h = new Help();
h.Show();
if (string.IsNullOrEmpty(url))
h.Navigate();
else
h.Navigate(url);
}
示例11: Satis
public Satis()
{
DB = new Database();
HP = new Help();
depoSatir = new DataTable();
InitializeComponent();
datatable();
}
示例12: ShouldReturnTrueForHelpArguments
public void ShouldReturnTrueForHelpArguments()
{
var printer = new Help(null);
AssertIsHelpArgument(printer, "/?");
AssertIsHelpArgument(printer, "/help");
AssertIsHelpArgument(printer, "/help", "another");
AssertIsHelpArgument(printer, "/?", "another");
AssertIsNotHelpArgument(printer, "/nothelp");
AssertIsNotHelpArgument(printer, "somefile.xml.master");
AssertIsNotHelpArgument(printer, "somefile.xml");
}
示例13: helpToolStripMenuItem_Click
private void helpToolStripMenuItem_Click(object sender, EventArgs e)
{
Help_Details helpDetails = new Help_Details();
helpDetails.MdiParent = this;
helpDetails.Show();
Help help = new Help();
help.MdiParent = this;
help.Show();
LayoutMdi(MdiLayout.TileVertical);
}
示例14: MainClass
public MainClass()
{
InitializeComponent();
FunctionManager.Setup();
PrefsManager.Load();
lm = new LabelManager(this, PrefsManager.ResultHeight);
lm.Sc = LMSelectionChanged;
ResizeInputField();
prefs = new Prefs();
prefs.Hide();
hlp = new Help();
hlp.Hide();
vchk = new VersionCheck();
}
示例15: Sil
public Sil(int i, string firmakod, string urunkod, string kategorikod, string turkod)
{
InitializeComponent();
this.fkod = firmakod;
this.ukod = urunkod;
this.kkod = kategorikod;
this.tkod = turkod;
table = i;
DB = new Database();
HP = new Help();
}