public IQuery() { Name = "Query"; Info = new string[] { "Jon Reed", "v.3", "Quick database analysis." }; UI = new QueryUI(); Options = new Form(); }
public bool Initialize(Server Server) { try { Server = new Server(Server); Load(); UI = new QueryUI(Server) as UserControl; return true; } catch (Exception ex) { QMain.ReportEx(ex, "QueryUtility", "Initialize(Server)"); return false; } }
public bool Initialize() { string svr = ""; if (SetConnection(ref svr)) { Server = new Server(svr); Load(); UI = new QueryUI(Server) as UserControl; return true; } return false; }
public bool Initialize(Server Server, string query) { try { Server = new Server(Server); Load(); UI = new QueryUI(Server, query) as UserControl; ExecuteQuery_Click(new Object(), new EventArgs()); return true; } catch (Exception ex) { QMain.ReportEx(ex, "QueryUtility", "Initialize(Server, Query)"); return false; } }