private void showOpenAnswersBtn_Click(object sender, EventArgs e) { Dictionary <ExcelQuestion, Tuple <Dictionary <string, int>, int, int> > questionInfoMap = new Dictionary <ExcelQuestion, Tuple <Dictionary <string, int>, int, int> >(); foreach (var questionItem in Questions) { questionInfoMap.Add(questionItem, ProccesingDataService.GetOpenInfo(questionItem, Profile, Document)); } using (QuestionInfoForm qif = new QuestionInfoForm()) { qif.QuestionInfoMap = questionInfoMap; qif.ShowDialog(); } }
private void openAnswerInfoBtn_Click(object sender, EventArgs e) { DataGridViewRow selectedDataGridRow = saveQuestionInfoBtn.Tag as DataGridViewRow; ExcelQuestion selectedQuestion = selectedDataGridRow.Cells["question"].Value as ExcelQuestion; ExcelProfile selectedProfile = mainTab.SelectedTab.Tag as ExcelProfile; Dictionary <ExcelQuestion, Tuple <Dictionary <string, int>, int, int> > questionInfoMap = new Dictionary <ExcelQuestion, Tuple <Dictionary <string, int>, int, int> >(); questionInfoMap.Add(selectedQuestion, ProccesingDataService.GetOpenInfo(selectedQuestion, selectedProfile, Document)); using (QuestionInfoForm qif = new QuestionInfoForm()) { qif.QuestionInfoMap = questionInfoMap; qif.ShowDialog(); } }