Beispiel #1
0
        //对比数据库
        void CompareDB()
        {
            if (compare1 == null || compare2 == null)
            {
                return;
            }
            string cdb1 = compare1.GetOpenFile();
            string cdb2 = compare2.GetOpenFile();

            if (string.IsNullOrEmpty(cdb1) ||
                string.IsNullOrEmpty(cdb2) ||
                cdb1 == cdb2)
            {
                return;
            }

            bool checktext = MyMsg.Question(LMSG.CheckText);

            //分别对比数据库
            compare1.CompareCards(cdb2, checktext);
            compare2.CompareCards(cdb1, checktext);
            MyMsg.Show(LMSG.CompareOK);
            menuitem_comp2.Enabled = false;
            compare1 = null;
            compare2 = null;
        }
Beispiel #2
0
 //设置数据库1
 void Menuitem_comp1Click(object sender, EventArgs e)
 {
     compare1 = GetActive();
     if (compare1 != null && !string.IsNullOrEmpty(compare1.GetOpenFile()))
     {
         menuitem_comp2.Enabled = true;
         CompareDB();
     }
 }