private IParametersControl CreateDateTimePickerParameter(SearchParameterProperties prm) { Search.Controls.SearchDateTimePicker dateTimePicker = new Search.Controls.SearchDateTimePicker(); dateTimePicker.Width = prm.ParameterControlWidth; return dateTimePicker; }
private IParametersControl CreateCheckBoxParameter(SearchParameterProperties prm) { Search.Controls.SearchCheckBox checkBox = new Search.Controls.SearchCheckBox(); checkBox.Width = prm.ParameterControlWidth; return checkBox; }
private IParametersControl CreateComboBoxParameter(SearchParameterProperties prm) { Search.Controls.SearchComboBox comboBox = new Search.Controls.SearchComboBox(); comboBox.Width = prm.ParameterControlWidth; comboBox.DataSource = prm.GetComboData(); comboBox.DisplayMember = prm.ComboBoxDisplayMember; comboBox.ValueMember = prm.ComboBoxValueMembers; return comboBox; }
private System.Windows.Forms.ComboBox CreateCompareOrderControl(SearchParameterProperties prm) { System.Windows.Forms.ComboBox compareOrderControl = new System.Windows.Forms.ComboBox(); compareOrderControl.Width = 60; compareOrderControl.DropDownStyle = ComboBoxStyle.DropDownList; compareOrderControl.TabStop = false; if (string.IsNullOrWhiteSpace(prm.ComperOrders) == false) { string[] compareOrders = prm.ComperOrders.Split(','); compareOrderControl.DataSource = compareOrders; } else compareOrderControl.Visible = false; return compareOrderControl; }
public void LoadDbSearchParameters(Srch_SearchMaster _searchMaster) { foreach (var dbSearchParameter in _searchMaster.Srch_SearchParameters) { SearchParameterProperties searchParameter = new SearchParameterProperties(); searchParameter.Search = this; searchParameter.FromDbSearchParameter(dbSearchParameter); this.SearchParametersProperties.Add(searchParameter); } }
private IParametersControl CreateTextBoxParameter(SearchParameterProperties prm) { Search.Controls.SearchTextBox textBox = new Search.Controls.SearchTextBox(); textBox.Width = prm.ParameterControlWidth; return textBox; }