/// <summary> /// Creates the specified text box. /// </summary> /// <param name="textBox">The text box.</param> /// <param name="sourceTable">The source table.</param> /// <returns></returns> /// <exception cref="Exception">Object already created</exception> public static SelectionTableDepartaments Create(TextBox textBox, DataTable sourceTable, SelectionType type) { return((mInstance == null) ? mInstance = new SelectionTableDepartaments(textBox, sourceTable, type) : null); }
/// <summary> /// Initializes a new instance of the <see cref="SelectionTableDepartaments"/> class. /// </summary> /// <param name="textBox">The text box.</param> /// <param name="sourceTable">The source table.</param> private SelectionTableDepartaments(TextBox textBox, DataTable sourceTable, SelectionType type) { this.textBox = textBox; this.sourceTable = sourceTable; this.selectionType = type; }
/// <summary> /// Creates the specified text box. /// </summary> /// <param name="textBox">The text box.</param> /// <param name="personType">Type of the person.</param> /// <param name="sourceTable">The source table.</param> /// <param name="selectTable">The select table.</param> /// <returns></returns> /// <exception cref="Exception">Object already created</exception> public static SelectionTablePersons Create(TextBox textBox, SelectionType personType, DataTable sourceTable, DataTable selectTable) { return((mInstance == null) ? mInstance = new SelectionTablePersons(textBox, personType, sourceTable, selectTable) : null); }