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