Ejemplo n.º 1
0
        /// <summary>
        /// The properties editor event handler
        /// </summary>
        /// <param name="sender">The sender</param>
        /// <param name="e">The event arguments</param>
        private void showForm(object sender, MouseEventArgs e)
        {
            if (e.Button != MouseButtons.Right)
            {
                return;
            }
            IShowForm sf = this;

            sf.Show();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Shows component form
        /// </summary>
        public void ShowForm()
        {
            if (component is IShowForm)
            {
                IShowForm sf = component as IShowForm;
                sf.Show();
                return;
            }
            IChildObjectLabel panel = ContainerPerformer.GetPanel(component as IObjectLabel) as IChildObjectLabel;

            panel.ShowForm();
        }
Ejemplo n.º 3
0
        private void MouseDown(object sender, MouseEventArgs e)
        {
            if ((Control.ModifierKeys & Keys.Shift) == Keys.Shift)
            {
                label.Selected = !label.Selected;
                return;
            }
            if (e.Button == MouseButtons.Right)
            {
                if (label is IShowForm)
                {
                    IShowForm sf = label as IShowForm;
                    sf.Show();
                    return;
                }
            }

            /*  if (EditorRectangle.Contains(e.X, e.Y))
             * {
             *    return;
             * }*/
            PaletteButton active = pDesktop.Tools.Active;

            if (active != null)
            {
                if (active.IsArrow & (active.ReflectionType != null))
                {
                    try
                    {
                        ICategoryArrow arrow = pDesktop.Tools.Factory.CreateArrow(active);
                        arrow.Source               = label.Object;
                        pDesktop.ActiveArrow       = arrow;
                        pDesktop.ActiveObjectLabel = label;
                        return;
                    }
                    catch (Exception ex)
                    {
                        ex.ShowError(10);
                        return;
                    }
                }
            }
            IsMoved = true;
            pDesktop.SetBlocking(true);
            mouseX = e.X;
            mouseY = e.Y;
        }