public AddMoreQ() { InitializeComponent(); Identification iden = new Identification(); Identification_Question Q = new Identification_Question(); iden.IdentificationAddItem(Q.QuestionS, Q.CorrectAnswer, Q.AlternateAnswers.ToArray(), Q.Hint); Q = null; }
private void IdentificationB_Click(object sender, RoutedEventArgs e) { Identification iden = new Identification(); Identification_Question Q = new Identification_Question(uName, iden); this.Close(); Q.Show(); Q = null; }
private void Yes_Click(object sender, RoutedEventArgs e) { if (selected == "I") { Identification_Question Q = new Identification_Question(uName, iden); Q.Show(); this.Close(); Q = null; } else if (selected == "M") { MultipleChoice_Question Q = new MultipleChoice_Question(uName, mul); Q.Show(); this.Close(); Q = null; } else if (selected == "E") { EnumerationQuestions Q = new EnumerationQuestions(uName, enu); Q.Show(); this.Close(); Q = null; } }