Inheritance: System.Windows.Forms.Form
コード例 #1
0
ファイル: CommandSet.cs プロジェクト: 5l1v3r1/nHydrate
        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
ファイル: CommandSet.cs プロジェクト: nHydrate/nHydrate
        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();

        }