private void AskUserSubmitBtn_Click(object sender, EventArgs e) { if (AskUser.CurrentlyAsked.ReturnType.Equals("String")) { AskUser.CurrentlyAsked.StringAnswer = AskUserAnswerTB.Text; } else { List <int> Answer = new List <int>(); if (AskUserAnswerRBOne.Visible) { if (AskUserAnswerRBOne.Checked) { Answer.Add(1); } else { Answer.Add(0); } if (AskUserAnswerRBTwo.Checked) { Answer.Add(1); } else { Answer.Add(0); } } foreach (DataGridViewRow Row in IronUI.AUW.AskUserAnswerGrid.Rows) { if ((bool)Row.Cells[0].Value) { Answer.Add(Row.Index); } } if (AskUserAnswerRBOne.Visible && Answer.Count > 2) { Answer[0] = 1; Answer[1] = 0; } AskUser.CurrentlyAsked.ListAnswer = new List <int>(Answer); } AskUser.CurrentlyAsked.MSR.Set(); IronUI.AskUserAnswered(); }
private void AskUserNoBtn_Click(object sender, EventArgs e) { AskUser.CurrentlyAsked.BoolAnswer = false; AskUser.CurrentlyAsked.MSR.Set(); IronUI.AskUserAnswered(); }