public void ClearData() { Device.BeginInvokeOnMainThread(() => { SelectedPartys.Clear(); PartyHistory.Clear(); SelectedPartiesUpdated?.Invoke(this, EventArgs.Empty); HistoryPartisUpdated?.Invoke(this, EventArgs.Empty); }); }
public override void Add(Log log, ref int insertCount) { var app = log.App.UpdateParty; var history = new PartyHistory { Datetime = DateTimeParseToUtc(app.Date), GroupId = app.GroupId, PlayerId = app.PlayerId, Type = app.Type, }; history.PlayerId1 = app.PlayerIds.Count >= 1 ? (long?)app.PlayerIds[0] : null; history.PlayerId2 = app.PlayerIds.Count >= 2 ? (long?)app.PlayerIds[1] : null; history.PlayerId3 = app.PlayerIds.Count >= 3 ? (long?)app.PlayerIds[2] : null; history.PlayerId4 = app.PlayerIds.Count >= 4 ? (long?)app.PlayerIds[3] : null; history.PlayerId5 = app.PlayerIds.Count >= 5 ? (long?)app.PlayerIds[4] : null; Histories.Add(history); insertCount++; }