Exemplo n.º 1
0
        private IParametersControl CreateDateTimePickerParameter(SearchParameterProperties prm)
        {
            Search.Controls.SearchDateTimePicker dateTimePicker = new Search.Controls.SearchDateTimePicker();
            dateTimePicker.Width = prm.ParameterControlWidth;

            return dateTimePicker;
        }
Exemplo n.º 2
0
        private IParametersControl CreateCheckBoxParameter(SearchParameterProperties prm)
        {
            Search.Controls.SearchCheckBox checkBox = new Search.Controls.SearchCheckBox();
            checkBox.Width = prm.ParameterControlWidth;

            return checkBox;
        }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
 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);
     }
 }
Exemplo n.º 6
0
        private IParametersControl CreateTextBoxParameter(SearchParameterProperties prm)
        {
            Search.Controls.SearchTextBox textBox = new Search.Controls.SearchTextBox();
            textBox.Width = prm.ParameterControlWidth;

            return textBox;
        }