Esempio n. 1
0
 public query()
 {
     InitializeComponent();
     if (DBname.dbIsChange)
     {
         SingletonMrData singletonMrData = new SingletonMrData();
         singletonMrData.MrInitializeComponent(DBname.dbName);
         DBname.dbIsChange = false;
     }
 }
Esempio n. 2
0
        private void MRShow_Load(object sender, EventArgs e)
        {
            if (DBname.dbIsChange)
            {
                //初始化列表
                SingletonMrData singletonMrData = new SingletonMrData();
                singletonMrData.MrInitializeComponent(DBname.dbName);
                DBname.dbIsChange = false;
            }
            var mrTable1 = SingletonMrData.mrTableL;

            //treeView1.Nodes.Clear();
            foreach (var item in mrTable1)
            {
                treeView1.Nodes[item.tabletype].Nodes.Add(item.tableName);
            }
        }