Ejemplo n.º 1
0
        //----------------------------------------------------------------------------private
        //正常刷新时间,加秒
        private void ReflashTime(object sender, EventArgs e)
        {                                              // gg yyyy/MM/dd hh:mm:ss dddd
            Worldtime.AddTime(new TimeSpan(0, 0, 15)); //1秒
            var    time  = Worldtime.GetTime();
            string state = Worldtime.GetState();

            TB_time.Text = time.ToString() + " " + state;
        }
Ejemplo n.º 2
0
        private static void GameOver(string str)
        {
            string output = str + " " + Worldtime.GetTime().ToString() + "\r\n";

            File.AppendAllText(FILEPATH, output);

            //MainForm.Print(str + "\r\n~~~!!!游戏结束!!!~~~");
            MainForm.TB_Dialogue.Text += str + "\r\n~~~!!!游戏结束!!!~~~\r\n"; //简单粗暴,去你的线程
            g_address.GotoAddress(0);
            //MainForm.Print(str + "\r\n~~~!!!游戏结束!!!~~~",()=> {
            //    g_address.GotoAddress(0);
            //});
        }
Ejemplo n.º 3
0
 public void Awake()//timer_Time
 {
     timer_Time.Enabled = true;
     TB_time.Text       = Worldtime.GetTime().ToString() + " " + Worldtime.GetState();
 }