public BinderCollectorItem(object control, string table, string column, string property, Findable findable) { this.Control = control; this.Table = table; this.Column = column; this.Property = property; this.Findable = findable; }
public void SetFindable(object control, Findable findable) { BinderCollectorItem item = bCollection.Find(p => p.Control == control); if (item != null) { item.Findable = findable; } }
public static string ToString(Findable findable) { try { return(strings[findable]); } catch (System.Exception) { throw new NotFindableException(); } }
public static Findable GetMatch(this Findable findable) { try { return(matches[findable]); } catch (System.Exception) { throw new NotFindableException(); } }
public BinderCollectorItem Bind(BinderCollector binderCollection, object control, string table, string column, string property, Findable findable) { return(binderCollection.Add(control, table, column, property, findable)); }
public BinderCollectorItem Bind(object control, IColumn column, string property, Findable findable) { return(bCollection.Add(control, column.Tablename, column.Name, property, findable)); }
public BinderCollectorItem Bind(object control, IColumn column, Findable findable) { return(bCollection.Add(control, column.Tablename, column.Name, "Text", findable)); }
public BinderCollectorItem Add(object control, string table, string column, string property, Findable findable) { BinderCollectorItem bind = new BinderCollectorItem(control, table, column, property, findable); this.Add(bind); return(bind); }
public FindableFO(Findable item, Position position = null) { this.Item = item; this.Position = position; }
public Binding BindControl(Control control, IColumn column, string property, NullValue nullValue, Findable findable) { if (column.Len > 0) { if (control is MetroTextBox) { ((MetroTextBox)control).MaxLength = column.Len; } else if (control is TextBox) { ((TextBox)control).MaxLength = column.Len; } } controlBinder.Bind(control, column, property, findable); if (dbManager.GetDataColumn(column).DefaultValue is System.DBNull && nullValue == NullValue.SetNull) { dbManager.GetDataColumn(column).DefaultValue = column.DefaultValue; } return(control.DataBindings.Add(property, dbManager.MasterBinding, column.Name)); }
public Binding BindControl(Control control, IColumn column, string property, Findable findable) { return(BindControl(control, column, property, NullValue.SetNull, findable)); }
public Binding BindControl(Control control, IColumn column, Findable findable) { return(BindControl(control, column, GetProperty(control), NullValue.SetNull, findable)); }
public void FindableControl(Control control, Findable findable) { controlBinder.SetFindable(control, findable); }
public List <FindableFO> FindAll(Findable findable) => FindAll(FindableMethods.ToString(findable)).Transform();