示例#1
0
文件: Form3.cs 项目: ReyBey13/-
        private void buttonStartGame_Click(object sender, EventArgs e)
        {
            ClassSaveHist hist = new ClassSaveHist(textBoxName.Text);

            hist.ShowForm();
            Hide();
        }
示例#2
0
文件: Form5.cs 项目: ReyBey13/-
        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();
            }
        }