private void изФайлаToolStripMenuItem_Click_1(object sender, EventArgs e) { string path; OpenFileDialog OPF = new OpenFileDialog(); OPF.Filter = "Test files(*.test)|*.test"; if (OPF.ShowDialog() == DialogResult.OK) { path = OPF.FileName; TestParser parser = new TestParser(path); parser.Parse(); TestProcessing game = new TestProcessing(parser.getRootLink()); myGUI = new StudentGUI(this, game); myGUI.start(); } }
public TeacherGUI(TeacherForm f, TestProcessing _game) { form = f; game = _game; }
public StudentGUI(Form1 f, TestProcessing _game) { form = f; game = _game; }