Пример #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;
 }