Наследование: System.Windows.Forms.Form
Пример #1
0
        private void OnMenuCommandEntityRelations(object sender, EventArgs e)
        {
            var model = this.CurrentDocView.CurrentDiagram.ModelElement as nHydrateModel;
            var store = this.CurrentDocData.Store;

            var l = new List <EntityShape>();

            foreach (var item in this.CurrentSelection)
            {
                var selectedObject = item as EntityShape;
                if (selectedObject != null)
                {
                    l.Add(selectedObject);
                    break;
                }
            }

            var F = new nHydrate.DslPackage.Forms.RelationCollectionForm(model, l.First(), store, this.CurrentDocView.CurrentDiagram, this.CurrentDocData as nHydrateDocData);

            F.ShowDialog();
        }
Пример #2
0
        private void OnMenuCommandEntityRelations(object sender, EventArgs e)
        {
            var model = this.CurrentDocView.CurrentDiagram.ModelElement as nHydrateModel;
            var store = this.CurrentDocData.Store;

            var l = new List<EntityShape>();
            foreach (var item in this.CurrentSelection)
            {
                var selectedObject = item as EntityShape;
                if (selectedObject != null)
                {
                    l.Add(selectedObject);
                    break;
                }
            }

            var F = new nHydrate.DslPackage.Forms.RelationCollectionForm(model, l.First(), store, this.CurrentDocView.CurrentDiagram, this.CurrentDocData as nHydrateDocData);
            F.ShowDialog();

        }