Ejemplo n.º 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.");
     }
 }
Ejemplo n.º 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.");
     }
 }
Ejemplo n.º 3
0
 public void Dispose()
 {
     actions.Clear();
     currentContext = null;
 }
Ejemplo n.º 4
0
 public void Dispose()
 {
     actions.Clear();
     currentContext = null;
 }