Example #1
0
        void ChildOriginatingLineStyle_MiddleImageClick(object sender, MouseEventArgs e)
        {
            LinkLine line = (LinkLine)sender;

            UserControls.FormInheritanceInfo form = new UserControls.FormInheritanceInfo(Entity, (Entity)line.Parent.Tag);
            Point pt = line.MidPoint;

            pt.Offset(-1 * form.Width / 2, -1 * form.Height / 2);

            if (pt.Y < 2)
            {
                pt.Offset(0, 5 - pt.Y);
            }
            pt.Offset(this.Parent.Parent.Parent.Left, this.Parent.Top);
            form.Location = pt;
            //MappingEditor.BringToFront();
            //MappingEditor.Visible = true;
            //MappingEditor.Refresh();

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                //Populate();
            }
            Populate();
        }
Example #2
0
        void ParentOriginatingLineStyle_MiddleImageClick(object sender, MouseEventArgs e)
        {
            LinkLine line = (LinkLine)sender;

            UserControls.FormInheritanceInfo form = new UserControls.FormInheritanceInfo((Entity)line.Parent.Tag, Entity);
            Point pt = line.MidPoint;

            pt.Offset(-1 * form.Width / 2, -1 * form.Height / 2);
            pt = this.PointToScreen(pt);

            if (pt.Y < 2)
            {
                pt.Offset(0, 5 - pt.Y);
            }

            form.Location = pt;

            //if (form.ShowDialog(this) == DialogResult.OK)
            //{
            //    //Populate();
            //}
            Populate();
        }
        void ParentOriginatingLineStyle_MiddleImageClick(object sender, MouseEventArgs e)
        {
            LinkLine line = (LinkLine)sender;

            UserControls.FormInheritanceInfo form = new UserControls.FormInheritanceInfo((Entity)line.Parent.Tag, Entity);
            Point pt = line.MidPoint;
            pt.Offset(-1 * form.Width / 2, -1 * form.Height / 2);
            pt = this.PointToScreen(pt);

            if (pt.Y < 2)
                pt.Offset(0, 5 - pt.Y);

            form.Location = pt;

            //if (form.ShowDialog(this) == DialogResult.OK)
            //{
            //    //Populate();
            //}
            Populate();
        }
        void ChildOriginatingLineStyle_MiddleImageClick(object sender, MouseEventArgs e)
        {
            LinkLine line = (LinkLine)sender;

            UserControls.FormInheritanceInfo form = new UserControls.FormInheritanceInfo(Entity, (Entity)line.Parent.Tag);
            Point pt = line.MidPoint;
            pt.Offset(-1 * form.Width / 2, -1 * form.Height / 2);

            if (pt.Y < 2)
                pt.Offset(0, 5 - pt.Y);
            pt.Offset(this.Parent.Parent.Parent.Left, this.Parent.Top);
            form.Location = pt;
            //MappingEditor.BringToFront();
            //MappingEditor.Visible = true;
            //MappingEditor.Refresh();

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                //Populate();
            }
            Populate();
        }