Example #1
0
        public Form1()
        {
            InitializeComponent();
            var holder = PositionHolderAlgorithmComboBox;

            holder.Visible                   = false;
            fixedKAlgorithmComboBox          = new Icas.UI.Controls.AlgorithmComboBox(c => c.CanFixK);
            fixedKAlgorithmComboBox.Name     = "fixedKAlgorithmComboBox";
            fixedKAlgorithmComboBox.Location = holder.Location;
            fixedKAlgorithmComboBox.Size     = new System.Drawing.Size(holder.Width, holder.Height);
            holder.Parent.Controls.Add(fixedKAlgorithmComboBox);
        }
Example #2
0
        public QuickClusteringForm()
        {
            InitializeComponent();
            var holder = positionHolderAlgorithmComboBox;

            holder.Visible                                = false;
            fixedKAlgorithmComboBox                       = new AlgorithmComboBox(c => c.CanFixK);
            fixedKAlgorithmComboBox.Name                  = "fixedKAlgorithmComboBox";
            fixedKAlgorithmComboBox.Location              = holder.Location;
            fixedKAlgorithmComboBox.Size                  = new System.Drawing.Size(holder.Width, holder.Height);
            fixedKAlgorithmComboBox.SelectedIndexChanged += this.fixedKAlgorithmComboBox_SelectedIndexChanged;

            holder.Parent.Controls.Add(fixedKAlgorithmComboBox);
        }