private void OnMenuCommandEntityRefreshFromDatabase(object sender, EventArgs e) { var model = this.CurrentDocView.CurrentDiagram.ModelElement as nHydrateModel; var store = this.CurrentDocData.Store; foreach (var item in this.CurrentSelection) { var F = new nHydrate.DslPackage.Forms.RefreshItemFromDatabase(model, (item as ShapeElement).ModelElement as nHydrate.Dsl.IDatabaseEntity, store, this.CurrentDocData); if (F.ShowDialog() == DialogResult.OK) { } } }
private void OnMenuCommandEntityRefreshFromDatabase(object sender, EventArgs e) { var model = this.CurrentDocView.CurrentDiagram.ModelElement as nHydrateModel; var store = this.CurrentDocData.Store; foreach (var item in this.CurrentSelection) { var F = new nHydrate.DslPackage.Forms.RefreshItemFromDatabase( model, (item as ShapeElement).ModelElement as nHydrate.Dsl.IDatabaseEntity, store, this.CurrentDocData); if (F.ShowDialog() == DialogResult.OK) { } } }