Пример #1
0
 public void AddNew()
 {
     Proxies.AppDataClient DataClient = new Proxies.AppDataClient();
     try
     {
         if (IsObjectValid)
         {
             DataClient.Open();
             DataClient.AddNewCategory(this);
             OnCategoryCreated();
         }
     }
     finally
     {
         DataClient.Close();
     }
 }