Exemple #1
0
 public ElementsList( ListOptions in_options, string object_types, object[] elements)
 {
     InitializeComponent();
     this.chosen = new object[0];
     this.Text += " " + object_types;
     foreach (object element in elements){
         this.clbElements.Items.Add(element);
     }
     this.is_simple_array = true;
 }
Exemple #2
0
        public ElementsList( ListOptions in_options, string object_types, string display, string value, System.Data.DataTable table)
        {
            InitializeComponent();
            this.options = in_options;
            this.chosen = new object[0];
            this.Text += " " + object_types;
            this.clbElements.DataSource = table;
            this.clbElements.DisplayMember = display;
            this.clbElements.ValueMember = value;
            this.is_simple_array = false;

            this.sDisplayColumn = display;
            this.sValueColumn = value;
            this.source = table;
        }