public static bool Input(out string filename) { FindResultBox FRB = new FindResultBox(); FRB.ShowDialog(); filename = FRB.text; return(FRB.t); }
//Посмотреть свои результаты private void ViewResultsTSMI_Click(object sender, EventArgs e) { string s; if (FindResultBox.Input(out s)) { XML_USER xmlUser = new XML_USER(); xmlUser.DeSerialize(s); ResultForm.ShowForm(xmlUser); this.Hide(); } }