Beispiel #1
0
        public SelectDB(CentralControl CentralForm)
        {
            this.CentralForm = CentralForm;
            InitializeComponent();
            FM = new MyWinForm(this);
            FM.SetDefaultStyle("选择数据库");

            listBox1.Items.Clear();
            foreach (FileInfo file in new DirectoryInfo(INI.Root).GetFiles("*.mdb"))
            {
                listBox1.Items.Add(file.Name);
            }
        }
Beispiel #2
0
 public Maintenance(CentralControl CentralForm)
 {
     this.CentralForm = CentralForm;
     InitializeComponent();
     FM = new MyWinForm(this);
     FM.SetDefaultStyle("软件维护");
     if (Global.con == null)
     {
         groupBox1.Enabled = false;
     }
     else
     {
         M = MyModel.GetInstance(Global.con);
     }
 }