Example #1
0
 public static void DeleteManifestation(Manifestation manifestation)
 {
     for (int i = 0; i < getInstance().Manifestations.Count; i++)
     {
         if (manifestation.Id.Equals(getInstance().Manifestations[i].Id))
         {
             getInstance().Manifestations.RemoveAt(i);
             SaveManifestations();
             break;
         }
     }
 }
Example #2
0
 public static void UpdateManifestation(string oldId, Manifestation manifestation)
 {
     for (int i = 0; i < getInstance().Manifestations.Count; i++)
     {
         if (oldId.Equals(getInstance().Manifestations[i].Id))
         {
             getInstance().Manifestations[i] = manifestation;
             SaveManifestations();
             break;
         }
     }
 }
 public Manifestation(Manifestation manifestation)
 {
     id             = manifestation.id;
     name           = manifestation.name;
     description    = manifestation.description;
     date           = manifestation.date;
     handicap       = manifestation.handicap;
     type           = new ManifestationType(manifestation.type);
     iconPath       = manifestation.iconPath;
     inside         = manifestation.inside;
     outside        = manifestation.outside;
     smokingAllowed = manifestation.smokingAllowed;
     price          = manifestation.price;
     alcohol        = manifestation.alcohol;
     expectedPublic = manifestation.expectedPublic;
     tags           = new ObservableCollection <ManifestationTag>(manifestation.tags);
     x = manifestation.X;
     y = manifestation.Y;
 }
Example #4
0
 public static void AddManifestation(Manifestation manifestation)
 {
     getInstance().manifestations.Add(manifestation);
     SaveManifestations();
 }