private void Initialize() { //CreateDbProperties(this, m_conn, m_dbname); var appobj = new DatabaseAppObject(); appobj.FillFromDatabase(m_conn); SetAppObject(appobj); }
public void Duplicate() { var dbobj = new DatabaseAppObject(); dbobj.AssignDbFields(this); dbobj.ConnPack = ConnPack; dbobj.DragDrop_CopyTable(this); CallCompleteChanged(); }
//DatabaseMenuCommands m_commands; public Database_SourceConnectionTreeNode(IDatabaseSource conn, ITreeNode parent, IFileHandler fhandler, IStoredConnection stored, bool autoConnect) : base(parent, fhandler, stored, autoConnect) { m_conn = conn.ChangeConnection(ConnPack); SetConnection(m_conn.Connection); var appobj = new DatabaseAppObject(); appobj.FillFromDatabase(conn); SetAppObject(appobj); m_infoappobj = new DatabaseAppObject(); m_infoappobj.FillFromDatabase(conn); m_infoappobj.DisableAutoConnect = true; //m_commands = new DatabaseMenuCommands(m_conn, this); //Database_SourceTreeNode.CreateDbProperties(this, m_conn, null); }
public override void GetObjectList(List <AppObject> objs, AppObject appobj, ConnectionPack connpack) { var server = appobj.FindServerConnection(connpack); if (server == null || server.Connection == null) { return; } foreach (string name in server.Databases) { var dbappobj = new DatabaseAppObject(); dbappobj.FillFromDatabase(server.GetDatabase(name)); objs.Add(dbappobj); } objs.SortByKey(o => o.ToString()); }