Пример #1
0
            public override System.Windows.Forms.Control InstantiateUIIn(System.Windows.Forms.Panel parentPanel, EventArgs e)
            {
                if (_sel != null)
                {
                    throw new InvalidOperationException();
                }

                _sel = new DateSelector();
                parentPanel.Controls.Add(_sel);
                _sel.Dock     = System.Windows.Forms.DockStyle.Fill;
                _sel.Changed += new EventHandler(OnSelChanged);
                _sel.Value    = _date;

                return(_sel);
            }
Пример #2
0
            public override System.Windows.Forms.Control InstantiateUIIn(System.Windows.Forms.Panel parentPanel, EventArgs e)
            {
                if (_sel != null)
                    throw new InvalidOperationException();

                _sel = new DateSelector();
                parentPanel.Controls.Add(_sel);
                _sel.Dock = System.Windows.Forms.DockStyle.Fill;
                _sel.Changed += new EventHandler(OnSelChanged);
                _sel.Value = _date;

                return _sel;
            }