Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the DropDownContainer class with the
        /// specified DropDownCellEditor owner
        /// </summary>
        public I3DropDownContainer(I3DropDownCellEditor editor) : base()
        {
            if (editor == null)
            {
                throw new ArgumentNullException("editor", "DropDownCellEditor cannot be null");
            }

            this.editor = editor;

            this.ControlBox      = false;
            this.MaximizeBox     = false;
            this.MinimizeBox     = false;
            this.FormBorderStyle = FormBorderStyle.None;
            this.ShowInTaskbar   = false;
            this.StartPosition   = FormStartPosition.Manual;
            this.TabStop         = false;
            this.TopMost         = true;

            this.dropdownControl = null;

            this.panel             = new Panel();
            this.panel.AutoScroll  = false;
            this.panel.BorderStyle = BorderStyle.FixedSingle;
            this.panel.Size        = this.Size;
            this.Controls.Add(this.panel);
            this.SizeChanged += new EventHandler(DropDownContainer_SizeChanged);
        }
 /// <summary>
 /// 构造函数
 /// Initializes a new instance of the DropDownCellEditor class with the
 /// specified DropDownCellEditor owner
 /// </summary>
 /// <param name="owner">The DropDownCellEditor that owns the listener</param>
 public I3ActivationListener(I3DropDownCellEditor owner) : base()
 {
     this.owner = owner;
 }