示例#1
0
 public void SetEGOSync()
 {
     EGOSync = true;
     if (Journalid != 0)
     {
         JournalEntry.UpdateSyncFlagBit(Journalid, SyncFlags.EGO, true);
     }
 }
示例#2
0
 public void SetEGOSync(SQLiteConnectionUser cn = null, DbTransaction txn = null)
 {
     EGOSync = true;
     if (Journalid != 0)
     {
         JournalEntry.UpdateSyncFlagBit(Journalid, SyncFlags.EGO, true, cn, txn);
     }
 }
示例#3
0
 public void SetEddnSync()
 {
     EDDNSync = true;
     if (Journalid != 0)
     {
         JournalEntry.UpdateSyncFlagBit(Journalid, SyncFlags.EDDN, true);
     }
 }
示例#4
0
        public void SetStartStop(HistoryEntry hs)
        {
            bool started = false;

            foreach (HistoryEntry he in historylist)
            {
                if (hs == he)
                {
                    if (he.StartMarker)
                    {
                        JournalEntry.UpdateSyncFlagBit(hs.Journalid, SyncFlags.StartMarker, false);
                        he.StartMarker = false;
                    }
                    else if (he.StopMarker)
                    {
                        JournalEntry.UpdateSyncFlagBit(hs.Journalid, SyncFlags.StopMarker, false);
                        he.StopMarker = false;
                    }
                    else if (started == false)
                    {
                        JournalEntry.UpdateSyncFlagBit(hs.Journalid, SyncFlags.StartMarker, true);
                        he.StartMarker = true;
                    }
                    else
                    {
                        JournalEntry.UpdateSyncFlagBit(hs.Journalid, SyncFlags.StopMarker, true);
                        he.StopMarker = true;
                    }

                    break;
                }
                else if (he.StartMarker)
                {
                    started = true;
                }
                else if (he.StopMarker)
                {
                    started = false;
                }
            }
        }
示例#5
0
 public void SetEdsmSync(SQLiteConnectionUser cn = null, DbTransaction txn = null)
 {
     journalEntry.UpdateSyncFlagBit(SyncFlags.EDSM, true, SyncFlags.NoBit, false, cn, txn);
 }