public void SetEGOSync() { EGOSync = true; if (Journalid != 0) { JournalEntry.UpdateSyncFlagBit(Journalid, SyncFlags.EGO, true); } }
public void SetEGOSync(SQLiteConnectionUser cn = null, DbTransaction txn = null) { EGOSync = true; if (Journalid != 0) { JournalEntry.UpdateSyncFlagBit(Journalid, SyncFlags.EGO, true, cn, txn); } }
public void SetEddnSync() { EDDNSync = true; if (Journalid != 0) { JournalEntry.UpdateSyncFlagBit(Journalid, SyncFlags.EDDN, true); } }
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; } } }
public void SetEdsmSync(SQLiteConnectionUser cn = null, DbTransaction txn = null) { journalEntry.UpdateSyncFlagBit(SyncFlags.EDSM, true, SyncFlags.NoBit, false, cn, txn); }