Esempio n. 1
0
            public void Initialise(FrmSelectList form, Core core)
            {
                this._listBox         = new ListView();
                this._listBox.Dock    = DockStyle.Fill;
                this._listBox.Margin  = new Padding(8, 8, 8, 8);
                this._listBox.Visible = true;

                form.panel1.Controls.Add(this._listBox);
                this._lvh = new CtlAutoList(this._listBox, core, null);
            }
Esempio n. 2
0
        private static IEnumerable <T> Show <T>(Form owner, IFormList handler, DataSet <T> opts, bool multiSelect, IEnumerable <T> defaultSelection)
        {
            using (FrmSelectList frm = new FrmSelectList(handler, opts, multiSelect, defaultSelection, opts.Core))
            {
                if (UiControls.ShowWithDim(owner, frm) == DialogResult.OK)
                {
                    return(frm._result.Cast <T>());
                }

                return(null);
            }
        }
Esempio n. 3
0
            void IFormList.Initialise(FrmSelectList form, Core core)
            {
                this._form = form;

                this._listBox = new FlowLayoutPanel();
                this._listBox.FlowDirection = FlowDirection.TopDown;
                this._listBox.Dock          = DockStyle.Fill;
                this._listBox.WrapContents  = false;
                this._listBox.AutoScroll    = true;
                this._listBox.Location      = new System.Drawing.Point(0, 0);
                this._listBox.Margin        = new Padding(0, 0, 0, 0);
                this._listBox.Visible       = true;

                this._toolTip        = new ToolTip();
                this._toolTip.Active = true;

                form.panel1.Controls.Add(this._listBox);
            }
Esempio n. 4
0
            public virtual void Initialise(FrmSelectList form, Core core)
            {
                this._listBox = new ListView();

                this._listBox.Columns.Add(new ColumnHeader());

                this._listBox.View             = View.Details;
                this._listBox.HeaderStyle      = ColumnHeaderStyle.None;
                this._listBox.FullRowSelect    = true;
                this._listBox.GridLines        = true;
                this._listBox.MultiSelect      = false;
                this._listBox.ShowItemToolTips = true;

                this._listBox.Dock    = DockStyle.Fill;
                this._listBox.Margin  = new Padding(8, 8, 8, 8);
                this._listBox.Visible = true;

                form.panel1.Controls.Add(this._listBox);
            }
Esempio n. 5
0
 public override void Initialise(FrmSelectList form, Core core)
 {
     base.Initialise(form, core);
     base._listBox.CheckBoxes = true;
 }