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