当前位置: 首页>>代码示例>>C#>>正文


C# Help类代码示例

本文整理汇总了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);
            }
        }
开发者ID:semihozkoroglu,项目名称:bedix,代码行数:29,代码来源:ekle.cs

示例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);
        }
开发者ID:vbfox,项目名称:win32iam,代码行数:29,代码来源:ActionManager.cs

示例3: aboutSudokuToolStripMenuItem_Click

 private void aboutSudokuToolStripMenuItem_Click(object sender, 
     EventArgs e)
 {
     Form help = new Help(2);
     help.ShowDialog(this);
     help = null;
 }
开发者ID:bjeanes,项目名称:uni,代码行数:7,代码来源:Sudoku.cs

示例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();
 }
开发者ID:cbzfy6188,项目名称:MyEnglish,代码行数:7,代码来源:Main.cs

示例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);
        }
开发者ID:DouglasHeriot,项目名称:Uno,代码行数:12,代码来源:Program.cs

示例6: ShowHelp

 public void ShowHelp(Help h, string url)
 {
     this.Show();
     if (string.IsNullOrEmpty(url))
         h.Navigate();
     else
         h.Navigate(url);
 }
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:8,代码来源:Help.cs

示例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();
        }
开发者ID:zmsl,项目名称:Ennerbot,代码行数:15,代码来源:MethodEditor.cs

示例8: button4_Click

 private void button4_Click(object sender, EventArgs e)
 {
     if (helpForm == null || !helpForm.Visible)
     {
         helpForm = new Help();
         helpForm.Show();
         helpForm.BringToFront();
     }
 }
开发者ID:ngaspar,项目名称:Triablo,代码行数:9,代码来源:Menu.cs

示例9: ShouldLoadHelpAndPrintToTextWriter

        public void ShouldLoadHelpAndPrintToTextWriter()
        {
            var output = new StringWriter();
            var printer = new Help(output);

            printer.PrintHelp();

            Assert.That(output.ToString().Contains("confgen"));
        }
开发者ID:refractalize,项目名称:confgen,代码行数:9,代码来源:HelpTest.cs

示例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);
 }
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:10,代码来源:Help.cs

示例11: Satis

        public Satis()
        {
            DB = new Database();
            HP = new Help();
            depoSatir = new DataTable();

            InitializeComponent();

            datatable();
        }
开发者ID:semihozkoroglu,项目名称:bedix,代码行数:10,代码来源:Satis.cs

示例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");
        }
开发者ID:refractalize,项目名称:confgen,代码行数:12,代码来源:HelpTest.cs

示例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);
        }
开发者ID:endamccormack,项目名称:draughts-checkers-game,代码行数:12,代码来源:StartForm.cs

示例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();
 }
开发者ID:henderea,项目名称:PopupMultibox,代码行数:14,代码来源:MainClass.cs

示例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();
        }
开发者ID:semihozkoroglu,项目名称:bedix,代码行数:14,代码来源:Sil.cs


注:本文中的Help类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。