Пример #1
0
        protected override void OnMouseUp(MouseEventArgs e)
        {
            try
            {
                // Get the clicked element
                Element element = this.GetElementByMouseCoordinates(e);
                if (element == null)
                {
                    return;
                }

                // Accessory element clicked
                element.AccessoryOperate();

                // Deactivate the element feedback sensor
                element.FeedbackOperate(FeedbackStatus.Disabled);

                // Block element clicked
                if (element.Properties.IsBlock)
                {
                    this.ShowBlockMenu(element);
                }
            }
            catch (Exception ex)
            {
                Logger.LogError(this, ex);
            }
        }