private void BtnStart_Click(object sender, EventArgs e) { if (isGameStart == false) { startTime = DateTime.Now; stopTime1 = stopTime2 = startTime; sec24 = sec24stop1 = sec24stop2 = startTime; startTime = startTime.Add(new TimeSpan(0, 0, min, sec)); sec24 = sec24.Add(new TimeSpan(0, 0, 0, 24)); isGameStart = true; btn24start.Text = "Pause"; } if (btnStart.Text == "Pause") { stopTime1 = DateTime.Now; sec24stop1 = stopTime1; btnStart.Text = "Start"; btn24start.Text = "Start"; SYNC.Stop(); SYNC24.Stop(); } else { stopTime2 = DateTime.Now; sec24stop2 = stopTime2; startTime += stopTime2 - stopTime1; sec24 += sec24stop2 - sec24stop1; btnStart.Text = "Pause"; btn24start.Text = "Pause"; SYNC.Start(); SYNC24.Start(); } }
public override RC Sync(SYNC flags) { if (Real != null) { return(Real.Sync(flags)); } return(RC.OK); }
public virtual RC Sync(SYNC flags) { // Check that one of SQLITE_SYNC_NORMAL or FULL was passed Debug.Assert(((int)flags & 0x0F) == (int)SYNC.NORMAL || ((int)flags & 0x0F) == (int)SYNC.FULL); SysEx.OSTRACE("SYNC {0} lock={1}", S.GetHashCode(), Locktype); #if SQLITE_NO_SYNC return(SQLITE.OK); #else S.Flush(); return(RC.OK); #endif }
private void SyncFile(FileInfo aSrcFile, FileInfo aDesFile, SYNC aSync) { if (aSync == SYNC.DOWNLOAD) { shortTimer.Start(); this.dropboxButton.ImageKey = "cloud_download"; ClearList(); LoadList(Constants.DEFAULT_FILE); } else { shortTimer.Start(); this.dropboxButton.ImageKey = "cloud_upload"; } File.Copy(aSrcFile.FullName, aDesFile.FullName, true); }
public override RC Sync(SYNC NotUsed2) { SysEx.UNUSED_PARAMETER(NotUsed2); return(RC.OK); }
public override RC Sync(SYNC flags) { if (Real != null) return Real.Sync(flags); return RC.OK; }
public override RC Sync(SYNC NotUsed2) { SysEx.UNUSED_PARAMETER(NotUsed2); return RC.OK; }
public override RC Sync(SYNC flags) { return RC.OK; }
public abstract RC Sync(SYNC flags);
public virtual RC Sync(SYNC flags) { // Check that one of SQLITE_SYNC_NORMAL or FULL was passed Debug.Assert(((int)flags & 0x0F) == (int)SYNC.NORMAL || ((int)flags & 0x0F) == (int)SYNC.FULL); SysEx.OSTRACE("SYNC {0} lock={1}", S.GetHashCode(), Locktype); #if SQLITE_NO_SYNC return SQLITE.OK; #else S.Flush(); return RC.OK; #endif }
public override RC Sync(SYNC flags) { return(RC.OK); }