Inheritance: System.Windows.Forms.Form
示例#1
0
        private void OnMenuCommandShowIndexes(object sender, EventArgs e)
        {
            var model = this.CurrentDocView.CurrentDiagram.ModelElement as nHydrateModel;
            var store = this.CurrentDocData.Store;

            var list = new List <Entity>();

            if (this.IsDiagramSelected())
            {
                list.AddRange(model.Entities);
            }
            else
            {
                foreach (var item in this.CurrentSelection)
                {
                    list.Add((item as EntityShape).ModelElement as Entity);
                }
            }

            var F = new nHydrate.DslPackage.Forms.IndexesForm(list, model, store);

            F.ShowDialog();
        }
示例#2
0
        private void OnMenuCommandShowIndexes(object sender, EventArgs e)
        {
            var model = this.CurrentDocView.CurrentDiagram.ModelElement as nHydrateModel;
            var store = this.CurrentDocData.Store;

            var list = new List<Entity>();
            if (this.IsDiagramSelected())
            {
                list.AddRange(model.Entities);
            }
            else
            {
                foreach (var item in this.CurrentSelection)
                {
                    list.Add((item as EntityShape).ModelElement as Entity);
                }
            }

            var F = new nHydrate.DslPackage.Forms.IndexesForm(list, model, store);
            F.ShowDialog();
        }