Esempio n. 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));
            }
        }
Esempio n. 2
0
 private bool CanDelete(DocumentVm obj)
 {
     return(Service.Online && SelectedDocument != null);
 }
Esempio n. 3
0
 public void Delete(DocumentVm obj)
 {
     Dispatcher.BeginInvoke(new Action(DeleteDocument));
 }
Esempio n. 4
0
 private bool CanCreate(DocumentVm doc)
 {
     return(Service.Online);
 }
Esempio n. 5
0
 private bool CanLoad(DocumentVm doc)
 {
     return(Service.Online && SelectedDocument != null);
 }
Esempio n. 6
0
 private void Load(DocumentVm doc)
 {
     SelectedDocument.Load();
 }
Esempio n. 7
0
 private void Load(DocumentVm doc)
 {
     SelectedDocument.Load();
 }
Esempio n. 8
0
 private bool CanLoad(DocumentVm doc)
 {
     return Service.Online && SelectedDocument != null;
 }
Esempio n. 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));
     }
 }
Esempio n. 10
0
 private bool CanCreate(DocumentVm doc)
 {
     return Service.Online;
 }
Esempio n. 11
0
 private bool CanDelete(DocumentVm obj)
 {
     return Service.Online && SelectedDocument != null;
 }
Esempio n. 12
0
 public void Delete(DocumentVm obj)
 {
     Dispatcher.BeginInvoke(new Action(DeleteDocument));
 }
Esempio n. 13
0
 private bool CanClose(DocumentVm arg)
 {
     return Service.Online;
 }
Esempio n. 14
0
 private void Close(DocumentVm obj)
 {
     Dispatcher.BeginInvoke(new Action(CloseDocument));
     _taskId = Scheduler.UnregisterTask(_taskId);
 }
Esempio n. 15
0
 private bool CanClose(DocumentVm arg)
 {
     return(Service.Online);
 }
Esempio n. 16
0
 private void Close(DocumentVm obj)
 {
     Dispatcher.BeginInvoke(new Action(CloseDocument));
     _taskId = Scheduler.UnregisterTask(_taskId);
 }