Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
 private void DeleteLetter()
 {
     ClientRequests.DeleteLetter(((ApplicationState)ServiceProvider.GetService(typeof(ApplicationState))).SelectedLetterView, ((ApplicationState)ServiceProvider.GetService(typeof(ApplicationState))).Worker.Id);
 }
Exemplo n.º 3
0
 private void DeleteLetter(LetterView letterView, Guid workerId)
 {
     ClientRequests.DeleteLetter(letterView, workerId);
 }