Пример #1
0
        /// <summary>
        ///     Called when the left mouse button is clicked over this component
        /// </summary>
        /// <param name="p">
        ///     The mouse position
        /// </param>
        /// <param name="o">
        ///     The origin of this component
        /// </param>
        public override void LeftClick(Point p, Point o)
        {
            if (this.Disabled)
            {
                return;
            }

#pragma warning disable 0169
            // ReSharper disable once UnusedVariable
            var dropdownSelect = new DropdownSelect(
                new Point(o.X + this.Area.X, o.Y + this.Area.Y + this.Area.Height),
                this.Area.Width,
                new Rectangle(o.X + this.Area.X, o.Y + this.Area.Y, this.Area.Width, this.Area.Height),
                this,
                this.Parent);
#pragma warning restore 0169
        }
 /// <summary>
 /// select the item type
 /// </summary>
 public void SelectItemType()
 {
     DropdownSelect.Wait(3).Click();
 }