///<summary>
 /// Constructor for <see cref="InputFormComboBox"/>
 ///</summary>
 ///<param name="controlFactory"></param>
 ///<param name="message"></param>
 ///<param name="choices"></param>
 public InputFormComboBox(IControlFactory controlFactory, string message, List<object> choices)
 {
     _controlFactory = controlFactory;
     _message = message;
     _comboBox = _controlFactory.CreateComboBox();
     choices.ForEach(item => _comboBox.Items.Add(item));
 }
 ///<summary>
 /// Constructor for <see cref="InputFormComboBox"/>
 ///</summary>
 ///<param name="controlFactory"></param>
 ///<param name="message"></param>
 ///<param name="choices"></param>
 public InputFormComboBox(IControlFactory controlFactory, string message, List <object> choices)
 {
     _controlFactory = controlFactory;
     _message        = message;
     _comboBox       = _controlFactory.CreateComboBox();
     choices.ForEach(item => _comboBox.Items.Add(item));
 }
Beispiel #3
0
 ///<summary>
 /// Constructor with the controlFactory, propertyName, filterClauseOperator.
 ///</summary>
 ///<param name="controlFactory"></param>
 ///<param name="propertyName"></param>
 ///<param name="filterClauseOperator"></param>
 public StringComboBoxFilter(IControlFactory controlFactory, string propertyName, FilterClauseOperator filterClauseOperator)
 {
     _controlFactory                 = controlFactory;
     _propertyName                   = propertyName;
     _filterClauseOperator           = filterClauseOperator;
     _comboBox                       = _controlFactory.CreateComboBox();
     _comboBox.SelectedIndexChanged += (sender, e) => FireValueChanged();
     _comboBox.TextChanged          += (sender, e) => FireValueChanged();
 }
 	///<summary>
     /// Constructor with controlFactory, propertyName and filterClauseOperator
     ///</summary>
     ///<param name="controlFactory"></param>
     ///<param name="propertyName"></param>
     ///<param name="filterClauseOperator"></param>
     ///<param name="enumType"></param>
     public EnumComboBoxFilter(IControlFactory controlFactory, string propertyName
             , FilterClauseOperator filterClauseOperator)
     {
         _controlFactory = controlFactory;
         _propertyName = propertyName;
         _filterClauseOperator = filterClauseOperator;
         _comboBox = _controlFactory.CreateComboBox();
         _comboBox.SelectedIndexChanged += (sender, e) => FireValueChanged();
         _comboBox.TextChanged += (sender,e) => FireValueChanged();
     }
 ///<summary>
 /// Constructor with a specified Control Factory
 ///</summary>
 ///<param name="controlFactory"></param>
 public ExtendedComboBoxVWG(IControlFactory controlFactory)
 {
     _controlFactory = controlFactory;
     IUserControlHabanero userControlHabanero = this;
     ComboBox = _controlFactory.CreateComboBox();
     Button = _controlFactory.CreateButton("...");
     BorderLayoutManager borderLayoutManager = controlFactory.CreateBorderLayoutManager(userControlHabanero);
     borderLayoutManager.AddControl(ComboBox, BorderLayoutManager.Position.Centre);
     borderLayoutManager.AddControl(Button, BorderLayoutManager.Position.East);
 }
 ///<summary>
 /// Constructs the <see cref="ExtendedComboBoxWin"/> with the specified <see cref="IControlFactory"/>.
 ///</summary>
 public ExtendedComboBoxWin(IControlFactory controlFactory)
 {
     _controlFactory = controlFactory;
     IUserControlHabanero userControlHabanero = this;
     _comboBox = _controlFactory.CreateComboBox();
     _button = _controlFactory.CreateButton("...");
     _button.MinimumSize = new Size(0, 0);
     BorderLayoutManager borderLayoutManager = controlFactory.CreateBorderLayoutManager(userControlHabanero);
     borderLayoutManager.AddControl(_comboBox, BorderLayoutManager.Position.Centre);
     borderLayoutManager.AddControl(_button, BorderLayoutManager.Position.East);
 }
Beispiel #7
0
        ///<summary>
        /// Constructor with a specified Control Factory
        ///</summary>
        ///<param name="controlFactory"></param>
        public ExtendedComboBoxVWG(IControlFactory controlFactory)
        {
            _controlFactory = controlFactory;
            IUserControlHabanero userControlHabanero = this;

            ComboBox = _controlFactory.CreateComboBox();
            Button   = _controlFactory.CreateButton("...");
            BorderLayoutManager borderLayoutManager = controlFactory.CreateBorderLayoutManager(userControlHabanero);

            borderLayoutManager.AddControl(ComboBox, BorderLayoutManager.Position.Centre);
            borderLayoutManager.AddControl(Button, BorderLayoutManager.Position.East);
        }
Beispiel #8
0
        ///<summary>
        /// Constructs the <see cref="ExtendedComboBoxWin"/> with the specified <see cref="IControlFactory"/>.
        ///</summary>
        public ExtendedComboBoxWin(IControlFactory controlFactory)
        {
            _controlFactory = controlFactory;
            IUserControlHabanero userControlHabanero = this;

            _comboBox           = _controlFactory.CreateComboBox();
            _button             = _controlFactory.CreateButton("...");
            _button.MinimumSize = new Size(0, 0);
            BorderLayoutManager borderLayoutManager = controlFactory.CreateBorderLayoutManager(userControlHabanero);

            borderLayoutManager.AddControl(_comboBox, BorderLayoutManager.Position.Centre);
            borderLayoutManager.AddControl(_button, BorderLayoutManager.Position.East);
        }