Пример #1
0
 public static DeletionContext Create()
 {
     if (currentContext == null)
     {
         currentContext = new DeletionContext();
         return currentContext;
     }
     else
     {
         throw new InvalidOperationException("DelectionContext can be created only one instance at same time.");
     }
 }
Пример #2
0
 public static DeletionContext Create()
 {
     if (currentContext == null)
     {
         currentContext = new DeletionContext();
         return(currentContext);
     }
     else
     {
         throw new InvalidOperationException("DelectionContext can be created only one instance at same time.");
     }
 }
Пример #3
0
 public void Dispose()
 {
     actions.Clear();
     currentContext = null;
 }
Пример #4
0
 public void Dispose()
 {
     actions.Clear();
     currentContext = null;
 }