Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="database"></param>
 /// <returns></returns>
 public bool Save(Cdy.Tag.Database database)
 {
     try
     {
         new Cdy.Tag.DatabaseSerise()
         {
             Dbase = database
         }.Save();
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="name"></param>
 public void NewDB(string name, string desc)
 {
     if (mDatabase.ContainsKey(name))
     {
         mDatabase[name] = new Cdy.Tag.Database()
         {
             Name = name, Desc = desc
         };
     }
     else
     {
         mDatabase.Add(name, new Cdy.Tag.Database()
         {
             Name = name, Desc = desc
         });
     }
 }