XmlReaderFile XmlFileWithTest; //read the Xml file public FormServer() { InitializeComponent(); XmlFileWithTest = new XmlReaderFile(); writers = new Dictionary <Thread, BinaryWriter>(); readers = new Dictionary <Thread, Socket>(); }
private void ReadAndFillQuiz() { string[] array = message.Split(' '); this.time = int.Parse(array[0]); this.count = int.Parse(array[1]); questionInQuiz = new List <Question>(); quizFile = new XmlReaderFile(); quizFile.Shuffle(); for (int i = 0; i < this.count; i++) { questionInQuiz.Add(quizFile.Quiz[i]); } }