Ejemplo n.º 1
0
        public void BindToCombo(ComboBox combo, DBCore.UtilityDataName type)
        {
            DataTable tbl = SelectAll((int)type);

            combo.DataSource = tbl;

            combo.DisplayMember = "value";
            combo.ValueMember   = "ID";
            combo.SelectedIndex = -1;
        }
Ejemplo n.º 2
0
 public void ShowForm(DBCore.UtilityDataName type, string labelName)
 {
     label2.Text = labelName.Replace("\n", "").Replace("\r", " ");
     NameID      = (int)type;
     this.ShowDialog();
 }