Example #1
0
        private void Create(DocumentVm doc)
        {
            var result = Service.Proxy.Create(null, Service.CurrentUser);

            if (!result.Success)
            {
                const string Msg = "Failed to create document\r\nMessage: {0};\r\nState: {1}";
                Logger.LogError(string.Format(Msg, result.Buffer, result.State));
            }
        }
Example #2
0
 private bool CanDelete(DocumentVm obj)
 {
     return(Service.Online && SelectedDocument != null);
 }
Example #3
0
 public void Delete(DocumentVm obj)
 {
     Dispatcher.BeginInvoke(new Action(DeleteDocument));
 }
Example #4
0
 private bool CanCreate(DocumentVm doc)
 {
     return(Service.Online);
 }
Example #5
0
 private bool CanLoad(DocumentVm doc)
 {
     return(Service.Online && SelectedDocument != null);
 }
Example #6
0
 private void Load(DocumentVm doc)
 {
     SelectedDocument.Load();
 }
Example #7
0
 private void Load(DocumentVm doc)
 {
     SelectedDocument.Load();
 }
Example #8
0
 private bool CanLoad(DocumentVm doc)
 {
     return Service.Online && SelectedDocument != null;
 }
Example #9
0
 private void Create(DocumentVm doc)
 {
     var result = Service.Proxy.Create(null, Service.CurrentUser);
     if (!result.Success)
     {
         const string Msg = "Failed to create document\r\nMessage: {0};\r\nState: {1}";
         Logger.LogError(string.Format(Msg, result.Buffer, result.State));
     }
 }
Example #10
0
 private bool CanCreate(DocumentVm doc)
 {
     return Service.Online;
 }
Example #11
0
 private bool CanDelete(DocumentVm obj)
 {
     return Service.Online && SelectedDocument != null;
 }
Example #12
0
 public void Delete(DocumentVm obj)
 {
     Dispatcher.BeginInvoke(new Action(DeleteDocument));
 }
Example #13
0
 private bool CanClose(DocumentVm arg)
 {
     return Service.Online;
 }
Example #14
0
 private void Close(DocumentVm obj)
 {
     Dispatcher.BeginInvoke(new Action(CloseDocument));
     _taskId = Scheduler.UnregisterTask(_taskId);
 }
Example #15
0
 private bool CanClose(DocumentVm arg)
 {
     return(Service.Online);
 }
Example #16
0
 private void Close(DocumentVm obj)
 {
     Dispatcher.BeginInvoke(new Action(CloseDocument));
     _taskId = Scheduler.UnregisterTask(_taskId);
 }