예제 #1
0
        private void buttonTimeSync_Click(object sender, EventArgs e)
        {
            string localTimeString = DateTime.Now.ToString("yyyyMMdd.HHmmss");

            if (AdbCommand.SetDeviceDateTime(localTimeString))
            {
                toolStripStatusLabelText.Text       = "时间同步成功";
                toolStripStatusLabelDeviceTime.Text = DateTime.Now.ToString("yyyy-MM-dd.HH:mm:ss");
            }
            else
            {
                toolStripStatusLabelText.Text = "时间同步失败";
            }
        }