예제 #1
0
        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)
                {
                }
            }
        }
예제 #2
0
        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)
                {
                }
            }
        }