コード例 #1
0
ファイル: DatabaseNodes.cs プロジェクト: janproch/datadmin
        private void Initialize()
        {
            //CreateDbProperties(this, m_conn, m_dbname);
            var appobj = new DatabaseAppObject();

            appobj.FillFromDatabase(m_conn);
            SetAppObject(appobj);
        }
コード例 #2
0
ファイル: TableAppObject.cs プロジェクト: janproch/datadmin
        public void Duplicate()
        {
            var dbobj = new DatabaseAppObject();

            dbobj.AssignDbFields(this);
            dbobj.ConnPack = ConnPack;
            dbobj.DragDrop_CopyTable(this);
            CallCompleteChanged();
        }
コード例 #3
0
ファイル: DatabaseNodes.cs プロジェクト: janproch/datadmin
        //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);
        }
コード例 #4
0
        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());
        }