Ejemplo n.º 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     using (var answerListDialog = new AnswerListDialog(answers))
     {
         answerListDialog.ShowDialog();
     }
 }
Ejemplo n.º 2
0
        private void onExtendedResultsRecive(string data)
        {
            var response = ResponseInfo.FromJson(data);

            if (response.Error != null)
            {
                MessageBox.Show(CommandErrors.GetErrorMessage(response.Error), "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else
            {
                var result = JsonConvert.DeserializeObject <List <AnswerListItem> >(SequrityUtils.DecryptString(response.Data, connection.User.SecretKey));
                using (var resultDialog = new AnswerListDialog(result))
                {
                    resultDialog.ShowDialog();
                }
            }
        }