コード例 #1
0
        /// <summary>
        /// Adds a GuiCheckBox to the form control collection.
        /// </summary>
        /// <param name="id">The id of this control</param>
        /// <param name="text">The visible text of the checkbox</param>
        /// <param name="isChecked">Set to true if the checkbix is to be checked by default.</param>
        /// <param name="tooltip">The mouseover text of this control</param>
        /// <returns>The newly created control.</returns>
        public GuiCheckBox AddCheckBox(string id, string text, bool isChecked, string tooltip)
        {
            GuiCheckBox checkbox = new GuiCheckBox();

            checkbox.ID      = id;
            checkbox.Text    = text;
            checkbox.Checked = isChecked;
            checkbox.ToolTip = tooltip;

            AddGuiControl(checkbox);

            return(checkbox);
        }
コード例 #2
0
		/// <summary>
		/// Adds a GuiCheckBox to the form control collection.
		/// </summary>
		/// <param name="id">The id of this control</param>
		/// <param name="text">The visible text of the checkbox</param>
		/// <param name="isChecked">Set to true if the checkbix is to be checked by default.</param>
		/// <param name="tooltip">The mouseover text of this control</param>
		/// <returns>The newly created control.</returns>
		public GuiCheckBox AddCheckBox(string id, string text, bool isChecked, string tooltip) 
		{
			GuiCheckBox checkbox = new GuiCheckBox();
			checkbox.ID = id;
			checkbox.Text = text;
			checkbox.Checked = isChecked;
			checkbox.ToolTip = tooltip;

			AddGuiControl(checkbox);

			return checkbox;
		}