Inheritance: System.Windows.Forms.Form
Ejemplo n.º 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();
        }
Ejemplo n.º 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();
        }