public void Execute(ActionExecutionContext context) { System.Threading.ThreadPool.QueueUserWorkItem(state => { //System.Threading.Thread.Sleep(200); Response = new IncomingBookViewModel(); Completed(this, new ResultCompletionEventArgs()); }); }
public void OpenIncomingBook() { try { var book = new IncomingBookViewModel(); ActivateItem(book); if (ActiveItem == book) { MarkActiveMenuItem("IncomingBook"); } } catch (Exception ex) { MessageBox.Show(ex.Message, "OperationError".GetUiTranslation(), MessageBoxButtons.OK, MessageBoxIcon.Error); } }