private void DeleteLetter() { if (_lettersInfo.Count == 0 || briefContentLetterDGV.SelectedCells.Count == 0) { MessageService.ErrorMessage(Message.MessageResource.LetterNotSelect); } else if (MessageService.QuestionMessage(Message.MessageResource.DeleteLetter) == DialogResult.Yes) { ClientRequests.DeleteLetter(_lettersInfo[_selectedRowInSelectedFolder[_selectNodeIndex]], ((ApplicationState)ServiceProvider.GetService(typeof(ApplicationState))).Worker.Id); InitializeMainWorkerForm(); } }
private void DeleteLetter() { ClientRequests.DeleteLetter(((ApplicationState)ServiceProvider.GetService(typeof(ApplicationState))).SelectedLetterView, ((ApplicationState)ServiceProvider.GetService(typeof(ApplicationState))).Worker.Id); }
private void DeleteLetter(LetterView letterView, Guid workerId) { ClientRequests.DeleteLetter(letterView, workerId); }