Example #1
0
 private void LoadData()
 {
     try
     {
         Program.ConfigGrid(logic.Read(null), dataGridView);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Example #2
0
 public List <MessageInfoViewModel> GetMessages(int clientId) =>
 _messageLogic.Read(new MessageInfoBindingModel {
     ClientId = clientId
 });