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)); } }
private bool CanDelete(DocumentVm obj) { return(Service.Online && SelectedDocument != null); }
public void Delete(DocumentVm obj) { Dispatcher.BeginInvoke(new Action(DeleteDocument)); }
private bool CanCreate(DocumentVm doc) { return(Service.Online); }
private bool CanLoad(DocumentVm doc) { return(Service.Online && SelectedDocument != null); }
private void Load(DocumentVm doc) { SelectedDocument.Load(); }
private bool CanLoad(DocumentVm doc) { return Service.Online && SelectedDocument != null; }
private bool CanCreate(DocumentVm doc) { return Service.Online; }
private bool CanDelete(DocumentVm obj) { return Service.Online && SelectedDocument != null; }
private bool CanClose(DocumentVm arg) { return Service.Online; }
private void Close(DocumentVm obj) { Dispatcher.BeginInvoke(new Action(CloseDocument)); _taskId = Scheduler.UnregisterTask(_taskId); }
private bool CanClose(DocumentVm arg) { return(Service.Online); }