Ejemplo n.º 1
0
        public GuiComboBox AddProcedureSelector(string id, string tooltip, string parentId)
        {
            GuiComboBox combobox = this.AddComboBox(id, tooltip);

            combobox.AutoBindingControlParentID = parentId;
            combobox.BindingTag = "procedure";

            BindMyMetaControl(combobox);
            return(combobox);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Adds a GuiComboBox to the form control collection.
        /// </summary>
        /// <param name="id">The id of this control</param>
        /// <param name="tooltip">The mouseover text of this control</param>
        /// <returns>The newly created control.</returns>
        public GuiComboBox AddComboBox(string id, string tooltip)
        {
            GuiComboBox combobox = new GuiComboBox();

            combobox.ID      = id;
            combobox.ToolTip = tooltip;

            AddGuiControl(combobox);

            return(combobox);
        }
Ejemplo n.º 3
0
        public void cmbDatabases_onchange(GuiComboBox control)
        {
            GuiComboBox cmbDatabases = ui["databaseName"] as GuiComboBox;
            GuiComboBox cmbTables = ui["tableName"] as GuiComboBox;

            cmbTables.BindData(MyMeta.Databases[cmbDatabases.SelectedValue].Tables);

            // clear columns list
            GuiListBox lstColumns = ui["lstColumns"] as GuiListBox;
            lstColumns.Clear();
        }
Ejemplo n.º 4
0
 public void cmbTables_onchange(GuiComboBox control)
 {
     try
     {
         GuiComboBox cmbDatabases = ui["databaseName"] as GuiComboBox;
         GuiComboBox cmbTables = ui["tableName"] as GuiComboBox;
         GuiListBox lstColumns = ui["lstColumns"] as GuiListBox;
         lstColumns.BindData(MyMeta.Databases[cmbDatabases.SelectedValue].Tables[cmbTables.SelectedValue].Columns);
     }
     catch (Exception ex)
     {
     }
 }
Ejemplo n.º 5
0
		/// <summary>
		/// Adds a GuiComboBox to the form control collection.
		/// </summary>
		/// <param name="id">The id of this control</param>
		/// <param name="tooltip">The mouseover text of this control</param>
		/// <returns>The newly created control.</returns>
		public GuiComboBox AddComboBox(string id, string tooltip) 
		{
			GuiComboBox combobox = new GuiComboBox();
			combobox.ID = id;
			combobox.ToolTip = tooltip;

			AddGuiControl(combobox);

			return combobox;
		}