CloverExamplePOS.DropDownButton.Clicked C# (CSharp) Метод

Clicked() приватный Метод

private Clicked ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void
        private void Clicked(object sender, EventArgs e)
        {
            if(e is MouseEventArgs)
            {
                if (((MouseEventArgs)e).X < this.Size.Width - 15)
                {
                    foreach(EventHandler ch in Click)
                    {
                        if(ch != null)
                        {
                            ch(sender, e);
                        }
                    }
                }
                else
                {
                    //ContextMenu.Show(this, new Point(this.Location.X-this.Size.Width, this.Location.Y+this.Size.Height));
                    ContextMenu.Show(this, new Point(0, this.Size.Height - Margin.Bottom));
                }
            }
        }