private void OriginatingLineStyle_MiddleImageClick(object sender, MouseEventArgs e)
        {
            LinkLine      line                = (LinkLine)sender;
            ComponentImpl component           = (ComponentImpl)line.DataObject;
            List <Entity> unavailableEntities = new List <Entity>();

            UserControls.FormComponentMappingEditor MappingEditor = new ArchAngel.Providers.EntityModel.UI.Editors.UserControls.FormComponentMappingEditor();
            MappingEditor.Fill(ComponentSpecification, component.ParentEntity);
            Point pt = line.MidPoint;

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

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

            MappingEditor.Location = pt;
            //MappingEditor.BringToFront();
            //MappingEditor.Visible = true;
            //MappingEditor.Refresh();

            if (MappingEditor.ShowDialog(this) == DialogResult.OK)
            {
                //Populate();
            }
            Populate();
        }
        void emptyReference_MouseClick(object sender, MouseEventArgs e)
        {
            if (ComponentSpecification.Properties.Count == 0)
            {
                MessageBox.Show("Add some properties to this components before adding a usage. Use the Properties grid below.", "No properties defined", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }
            List <Entity> unavailableEntities = new List <Entity>();

            UserControls.FormComponentMappingEditor MappingEditor = new ArchAngel.Providers.EntityModel.UI.Editors.UserControls.FormComponentMappingEditor();
            MappingEditor.Fill(ComponentSpecification, null);
            MappingEditor.Location = e.Location;
            //MappingEditor.BringToFront();
            //MappingEditor.Visible = true;

            if (MappingEditor.ShowDialog(this) == DialogResult.OK)
            {
                //Populate();
            }
            Populate();
        }
Ejemplo n.º 3
0
        private void mnuRefactorToExistingComponent_Click(object sender, EventArgs e)
        {
            UserControls.FormComponentMappingEditor MappingEditor = new ArchAngel.Providers.EntityModel.UI.Editors.UserControls.FormComponentMappingEditor();
            MappingEditor.Fill(null, TheEntity);
            Point pt = new Point(MappingEditor.Width / 2, MappingEditor.Height / 2);

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

            MappingEditor.ShowDialog(this);
            Populate();
        }
Ejemplo n.º 4
0
        private void mnuEditComponent_Click(object sender, EventArgs e)
        {
            UserControls.FormComponentMappingEditor MappingEditor = new ArchAngel.Providers.EntityModel.UI.Editors.UserControls.FormComponentMappingEditor();
            MappingEditor.Fill(SelectedComponent.Specification, SelectedComponent.ParentEntity);
            Point pt = new Point(MappingEditor.Width / 2, MappingEditor.Height / 2);

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

            MappingEditor.ShowDialog(this);
            Populate();
        }
Ejemplo n.º 5
0
        private void ShowComponentEditor(Slyce.Common.Controls.FloatingToolstrip.MenuItem menuItem, Point location)
        {
            ArchAngel.Providers.EntityModel.Model.EntityLayer.Component component = (ArchAngel.Providers.EntityModel.Model.EntityLayer.Component)menuItem.Parent.Tag;

            UserControls.FormComponentMappingEditor ComponentMappingEditor = new ArchAngel.Providers.EntityModel.UI.Editors.UserControls.FormComponentMappingEditor();
            ComponentMappingEditor.Fill(component.Specification, TheEntity);
            Point pt = location;
            pt.Offset(-1 * ComponentMappingEditor.Width / 2, -1 * ComponentMappingEditor.Height / 2);

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

            EntityToolstrip.Visible = false;
            this.Refresh();
            ComponentMappingEditor.Location = pt;
            //ComponentMappingEditor.BringToFront();
            //ComponentMappingEditor.Visible = true;
            //ComponentMappingEditor.Refresh();
            ComponentMappingEditor.ShowDialog(this);
            Populate();
        }
        private void OriginatingLineStyle_MiddleImageClick(object sender, MouseEventArgs e)
        {
            LinkLine line = (LinkLine)sender;
            ComponentImpl component = (ComponentImpl)line.DataObject;
            List<Entity> unavailableEntities = new List<Entity>();
            UserControls.FormComponentMappingEditor MappingEditor = new ArchAngel.Providers.EntityModel.UI.Editors.UserControls.FormComponentMappingEditor();
            MappingEditor.Fill(ComponentSpecification, component.ParentEntity);
            Point pt = line.MidPoint;
            pt.Offset(-1 * MappingEditor.Width / 2, -1 * MappingEditor.Height / 2);

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

            MappingEditor.Location = pt;
            //MappingEditor.BringToFront();
            //MappingEditor.Visible = true;
            //MappingEditor.Refresh();

            if (MappingEditor.ShowDialog(this) == DialogResult.OK)
            {
                //Populate();
            }
            Populate();
        }
        void emptyReference_MouseClick(object sender, MouseEventArgs e)
        {
            if (ComponentSpecification.Properties.Count == 0)
            {
                MessageBox.Show("Add some properties to this components before adding a usage. Use the Properties grid below.", "No properties defined", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }
            List<Entity> unavailableEntities = new List<Entity>();

            UserControls.FormComponentMappingEditor MappingEditor = new ArchAngel.Providers.EntityModel.UI.Editors.UserControls.FormComponentMappingEditor();
            MappingEditor.Fill(ComponentSpecification, null);
            MappingEditor.Location = e.Location;
            //MappingEditor.BringToFront();
            //MappingEditor.Visible = true;

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