Пример #1
0
 internal void SelectionHasChanged(MultiListSelectorSubSelection sender, EventArgs e)
 {
     if (SelectionChanged != null)
     {
         SelectionChanged(this, e);
     }
 }
Пример #2
0
        public void Init(IList <string> items1, IList <string> selectorNames)
        {
            items = items1;
            foreach (string s in items1)
            {
                allListBox.Items.Add(s);
            }
            int n = selectorNames.Count;
            TableLayoutPanel tableLayoutPanel2 = new TableLayoutPanel();

            subSelection = new MultiListSelectorSubSelection[n];
            for (int i = 0; i < n; i++)
            {
                subSelection[i] = new MultiListSelectorSubSelection {
                    Dock = DockStyle.Fill, Location = new System.Drawing.Point(3, 3), MultiListSelector = null,
                    Name = "multiListSelectorSubSelection1", Size = new System.Drawing.Size(234, 183), TabIndex = 1,
                    Text = selectorNames[i]
                };
                subSelection[i].MultiListSelector = this;
            }
            tableLayoutPanel2.ColumnCount = 1;
            tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
            tableLayoutPanel2.Dock     = DockStyle.Fill;
            tableLayoutPanel2.Location = new System.Drawing.Point(188, 0);
            tableLayoutPanel2.Margin   = new Padding(0);
            tableLayoutPanel2.Name     = "tableLayoutPanel2";
            tableLayoutPanel2.RowCount = n;
            for (int i = 0; i < n; i++)
            {
                tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Percent, 50F));
                tableLayoutPanel2.Controls.Add(subSelection[i], 0, i);
            }
            tableLayoutPanel2.Size     = new System.Drawing.Size(240, 379);
            tableLayoutPanel2.TabIndex = 2;
            tableLayoutPanel1.Controls.Add(tableLayoutPanel2, 1, 0);
        }
Пример #3
0
 internal void SelectionHasChanged(MultiListSelectorSubSelection sender, EventArgs e)
 {
     if (SelectionChanged != null){
         SelectionChanged(this, e);
     }
 }
Пример #4
0
 public void Init(IList<string> items1, IList<string> selectorNames)
 {
     items = items1;
     foreach (string s in items1){
         allListBox.Items.Add(s);
     }
     int n = selectorNames.Count;
     TableLayoutPanel tableLayoutPanel2 = new TableLayoutPanel();
     subSelection = new MultiListSelectorSubSelection[n];
     for (int i = 0; i < n; i++){
         subSelection[i] = new MultiListSelectorSubSelection{
             Dock = DockStyle.Fill, Location = new System.Drawing.Point(3, 3), MultiListSelector = null,
             Name = "multiListSelectorSubSelection1", Size = new System.Drawing.Size(234, 183), TabIndex = 1,
             Text = selectorNames[i]
         };
         subSelection[i].MultiListSelector = this;
     }
     tableLayoutPanel2.ColumnCount = 1;
     tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
     tableLayoutPanel2.Dock = DockStyle.Fill;
     tableLayoutPanel2.Location = new System.Drawing.Point(188, 0);
     tableLayoutPanel2.Margin = new Padding(0);
     tableLayoutPanel2.Name = "tableLayoutPanel2";
     tableLayoutPanel2.RowCount = n;
     for (int i = 0; i < n; i++){
         tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Percent, 50F));
         tableLayoutPanel2.Controls.Add(subSelection[i], 0, i);
     }
     tableLayoutPanel2.Size = new System.Drawing.Size(240, 379);
     tableLayoutPanel2.TabIndex = 2;
     tableLayoutPanel1.Controls.Add(tableLayoutPanel2, 1, 0);
 }