예제 #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);
            }
        }
예제 #2
0
 public static void InitDB(IMyTreeDB treeDB)
 {
     db = treeDB as MyTreeDBMysql;
 }