Ejemplo n.º 1
0
 public void FlagUpdate()
 {
     if (!Registered)
     {
         throw new InvalidOperationException("Instance is not registered or has been deleted");
     }
     InstanceList.FlagUpdate();
 }
Ejemplo n.º 2
0
        private InstanceList GetInstanceList(object listChoosingInfo)
        {
            if (InstanceLists.TryGetValue(listChoosingInfo, out var list))
            {
                return(list);
            }
            var newList = new InstanceList(this);

            InstanceLists.Add(listChoosingInfo, newList);
            return(newList);
        }
Ejemplo n.º 3
0
 public void Delete()
 {
     Registered = false;
     InstanceList.Remove(this);
 }