Beispiel #1
0
        private void button_done_Click(object sender, EventArgs e)
        {
            File.WriteAllText("data//score.dll", Convert.ToString(file_score));
            string history_record_read = File.ReadAllText("data//history record.dll");

            File.WriteAllText("data//history record.dll", "|" + DateTime.Now + "|" + "你在level1关卡中获得了总共"
                              + final_score + "分数,生命剩余" + live
                              + "加分数为:" + add_score + history_record_read);
            timer_done_show.Stop();
            SC.Show();
            this.Dispose();
        }
Beispiel #2
0
        private void map_level2_FormClosing(object sender, FormClosingEventArgs e)
        {
            DialogResult dr = MessageBox.Show("确定退出吗?已收集的分数将不会被保存。", "确定吗?", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning);

            if (dr == DialogResult.Cancel)
            {
                e.Cancel = true;
            }
            if (dr == DialogResult.OK)
            {
                SC.Show();
                this.Dispose();
            }
        }
Beispiel #3
0
        private void Form_SM_FormClosing(object sender, FormClosingEventArgs e)
        {
            Form_SC sc = new Form_SC();

            sc.Show();
            close_this();
        }
Beispiel #4
0
 private void button_start_Click(object sender, EventArgs e)
 {
     SC.Show();
     this.Hide();
     Class_staticsound.bt_click();
 }