internal void DoInsert() { FeatureQueryOptions query = null; switch (_view.SelectedQueryMode) { case QueryMode.Aggregate: { query = (_view.QueryView as IFdoAggregateQueryView).QueryObject; } break; case QueryMode.Standard: { query = (_view.QueryView as IFdoStandardQueryView).QueryObject; } break; } if (query != null) { Workbench wb = Workbench.Instance; FdoInsertScaffold ctl = new FdoInsertScaffold(_connection, query.ClassName); wb.ShowContent(ctl, ViewRegion.Dialog); } }
public override void Run() { Workbench wb = Workbench.Instance; TreeNode node = wb.ObjectExplorer.GetSelectedNode(); if (node.Level == 3) { string name = node.Name; FdoConnectionManager mgr = ServiceManager.Instance.GetService<FdoConnectionManager>(); FdoConnection conn = mgr.GetConnection(node.Parent.Parent.Name); FdoInsertScaffold ctl = new FdoInsertScaffold(conn, name); wb.ShowContent(ctl, ViewRegion.Dialog); } }