예제 #1
0
        public IDisposable SetApplicationBusy()
        {
            var context = new ApplicationBusyContext()
            {
                DisposeCallback = ApplicationBusyContextDisposeCallback
            };

            applicationBusyContext.Add(context);
            IsApplicationBusy = true;
            return(context);
        }
예제 #2
0
 private void ApplicationBusyContextDisposeCallback(ApplicationBusyContext context)
 {
     applicationBusyContext.Remove(context);
     IsApplicationBusy = applicationBusyContext.Any();
 }
예제 #3
0
 private void ApplicationBusyContextDisposeCallback(ApplicationBusyContext context)
 {
     applicationBusyContext.Remove(context);
     IsApplicationBusy = applicationBusyContext.Any();
 }
예제 #4
0
 public IDisposable SetApplicationBusy()
 {
     var context = new ApplicationBusyContext()
     {
         DisposeCallback = ApplicationBusyContextDisposeCallback
     };
     applicationBusyContext.Add(context);
     IsApplicationBusy = true;
     return context;
 }