private void buttonStartGame_Click(object sender, EventArgs e) { ClassSaveHist hist = new ClassSaveHist(textBoxName.Text); hist.ShowForm(); Hide(); }
private void buttonMenu_Click(object sender, EventArgs e) { ClassSaveHist hist = new ClassSaveHist(); if (Res == 0 || Res == 2) { Hide(); hist.ShowForm(); } else { StreamWriter streamWriter = new StreamWriter("records.txt", true); streamWriter.WriteLine(ClassSaveHist.Name + ":" + m + " мин " + s + " сек " + ":" + HCRes + ";"); streamWriter.Close(); FormRecords form = new FormRecords(); form.Show(); Hide(); } }