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(); }
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(); }