public void AddQuestion(string type, string content, string question) { Enums.AnswerType atype = Enums.AnswerType.Text; switch (type) { case "AUDIO": atype = Enums.AnswerType.Audio; break; case "IMAGE": atype = Enums.AnswerType.Image; break; case "STRING": atype = Enums.AnswerType.Text; break; } int i = 0; while (_questions[i] != null) { ++i; } _questions[i] = new Question(atype, content, question); }
public CallInfo(int callNumber, int receivingNumber, DateTime beginCall, Enums.AnswerType callingAnswerType) { CallNumber = callNumber; ReceivingNumber = receivingNumber; BeginCall = beginCall; CallingAnswerType = callingAnswerType; }
public void AddQuestion(Enums.AnswerType type, string content, string question) { int i = 0; while (_questions[i] != null) { ++i; } _questions[i] = new Question(type, content, question); }
public QuestionWindow(Enums.AnswerType atype, string content, string question, int value, int cat) { InitializeComponent(); Console.WriteLine("Frage: " + question); _atype = atype; _content = content; _value = value; _cat = cat; _curPlayer = -1; if (_atype == Enums.AnswerType.Text) { answerLabel.Text = _content; answerLabel.Show(); bgMusic(); } else if (_atype == Enums.AnswerType.Image) { answerImage.Load(_content); if (answerImage.Image.Size.Width > answerImage.Size.Width || answerImage.Image.Size.Height > answerImage.Size.Height) { answerImage.SizeMode = PictureBoxSizeMode.Zoom; } else { answerImage.SizeMode = PictureBoxSizeMode.CenterImage; } answerImage.Show(); bgMusic(); } else if (_atype == Enums.AnswerType.Audio) { playSound(_content); answerLabel.Text = "Zuhören!"; answerLabel.Show(); } }
public Question(Enums.AnswerType atype, string content, string q) { _atype = atype; _content = content; _q = q; }
public Question(Question previous) { _atype = previous._atype; _content = previous._content; _q = previous._q; }