Exemple #1
0
        /// <summary>
        /// Adds a GuiButton to the form control collection.
        /// </summary>
        /// <param name="id">The id of this control</param>
        /// <param name="text">The visible text of the control</param>
        /// <param name="tooltip">The mouseover text of this control</param>
        /// <returns>The newly created control.</returns>
        public GuiButton AddButton(string id, string text, string tooltip)
        {
            GuiButton button = new GuiButton();

            button.ID      = id;
            button.Text    = text;
            button.ToolTip = tooltip;

            AddGuiControl(button);

            return(button);
        }
		/// <summary>
		/// Adds a GuiButton to the form control collection that will close the form.
		/// </summary>
		/// <param name="id">The id of this control</param>
		/// <param name="text">The visible text of this control</param>
		/// <param name="tooltip">The mouseover text of this control</param>
		/// <returns>The newly created control.</returns>
		public GuiButton AddOkButton( string id, string text, string tooltip) 
		{
			GuiButton button = new GuiButton();
			button.ID = id;
			button.Text = text;
			button.ToolTip = tooltip;
			button.ClosesForm = true;

			AddGuiControl(button);

			return button;
		}