//======================================================================================== // Describe() //======================================================================================== protected void Describe( string type, string name, string owner, River.Orqa.Query.QueryWindow window) { window.SetStatusMessage("Generating DDL..."); worker = new BackgroundWorker(); worker.DoWork += new DoWorkEventHandler(DoDescribeWork); worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(DoDescribeCompleted); worker.RunWorkerAsync(new object[] { type, name, owner, window }); }
private void DoDescribeCompleted(object sender, RunWorkerCompletedEventArgs e) { object[] args = (object[])e.Result; string ddl = (string)args[0]; string owner = (string)args[1]; string name = (string)args[2]; River.Orqa.Query.QueryWindow window = (River.Orqa.Query.QueryWindow)args[3]; window.InsertText(ddl); window.IsSaved = true; window.SetTitle(owner + "." + name); window.SetStatusMessage("Ready"); }