Ejemplo n.º 1
0
 private bool DoLoad()
 {
     TSystemBase sysbase = new TSystemBase(_dbpath, PassWord);
     SysList = sysbase.Load_SystemBase();
     if (SysList == null || SysList.Count <= 0)
         return false;
     else
         return true;
 }
Ejemplo n.º 2
0
 private bool DoDelete()
 {
     TSystemBase sysbase = new TSystemBase(_dbpath, PassWord);
     if (SysList == null || SysList.Count <= 0)
         return false;
     int count = 0;
     foreach (CSystemBase s in SysList)
     {
         if (sysbase.Delete_SystemBase(s))
         {
             count++;
         }
     }
     if (count <= 0)
         return false;
     else
         return true;
 }
Ejemplo n.º 3
0
 private bool DoInsert()
 {
     TSystemBase sysbase = new TSystemBase(_dbpath, PassWord);
     if (SysList == null || SysList.Count <= 0)
         return false;
     int count = 0;
     foreach(CSystemBase s in SysList)
     {
         CSystemBase tmp = s;
         if (sysbase.Insert_SystemBase(ref tmp))
         {
             count++;
         }
     }
     if (count <= 0)
         return false;
     else
         return true;
 }
Ejemplo n.º 4
0
 private bool DoClear()
 {
     TSystemBase sysbase = new TSystemBase(_dbpath, PassWord);
     return sysbase.Clear_SystemBase();
 }