Пример #1
0
        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();
            }
        }
Пример #2
0
 public override RC Sync(SYNC flags)
 {
     if (Real != null)
     {
         return(Real.Sync(flags));
     }
     return(RC.OK);
 }
Пример #3
0
        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
        }
Пример #4
0
 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);
 }
Пример #5
0
 public override RC Sync(SYNC NotUsed2)
 {
     SysEx.UNUSED_PARAMETER(NotUsed2); return(RC.OK);
 }
Пример #6
0
 public override RC Sync(SYNC flags)
 {
     if (Real != null)
         return Real.Sync(flags);
     return RC.OK;
 }
Пример #7
0
 public override RC Sync(SYNC NotUsed2)
 {
     SysEx.UNUSED_PARAMETER(NotUsed2); return RC.OK;
 }
Пример #8
0
 public override RC Sync(SYNC flags)
 {
     return RC.OK;
 }
Пример #9
0
 public abstract RC Sync(SYNC flags);
Пример #10
0
 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
 }
Пример #11
0
 public abstract RC Sync(SYNC flags);
Пример #12
0
 public override RC Sync(SYNC flags)
 {
     return(RC.OK);
 }