Esempio n. 1
0
        public ConnDBView(InvokeDelegate startupDelegate, IMyTreeDB treeDB)
        {
            InitializeComponent();
            this.startupDelegate = startupDelegate;
            this.treeDB          = treeDB as MyTreeDBMysql;

            //会话列表
            List <string> sessionNames = DBSession.GetSessionNames();

            foreach (string session in sessionNames)
            {
                sessionList.Items.Add(session);
            }
        }
Esempio n. 2
0
 public static void InitDB(IMyTreeDB treeDB)
 {
     db = treeDB as MyTreeDBMysql;
 }