//Mess parsen private void parsMes(Queue serv) { while (!temp[0].Equals("end")) { temp = serv.Dequeue().ToString().Split(':'); text2.Add(temp[0], temp[1]); } Message mes = new Message(text2); //gui.textBox1.Text = testmes.getMessage(); gui = getGui(); gui.setTextBox1(mes.getMessage()); text2.Clear(); mes.toString(); //text2.Add(temp[0], temp[1]); }
//Time parsen private void parsTime(Queue serv) { long time = 0; while (!temp[0].Equals("end")) { time = long.Parse(serv.Dequeue().ToString()); temp = serv.Dequeue().ToString().Split(':'); } Time testtime = new Time(time); gui = getGui(); gui.setTextBox1(testtime.toString()); text2.Clear(); Console.WriteLine(testtime.toString()); }