public CapturedEvent(EventType eventType, CapturableEvents capturableEvent, string eventText, DateTime loggedTime, string instigatingAdmin) { EventType = eventType; Event = capturableEvent; EventText = eventText; LoggedTime = loggedTime; InstigatingAdmin = instigatingAdmin; }
public CapturedEvent(EventType etType, CapturableEvents ceEvent, string strEventText, DateTime dtLoggedTime, string instigatingAdmin) { this.eType = etType; this.Event = ceEvent; this.EventText = strEventText; this.LoggedTime = dtLoggedTime; this.InstigatingAdmin = instigatingAdmin; }
private void CapturedEvents_ItemRemoved(int iIndex, CapturableEvents item) { if (this.lsvCapturedEvents.Items.ContainsKey(item.ToString()) == true) { this.lsvCapturedEvents.Items.Remove(this.lsvCapturedEvents.Items[item.ToString()]); } }
private void CapturedEvents_ItemAdded(int iIndex, CapturableEvents item) { ListViewItem lviNewCapture = new ListViewItem(item.ToString()); lviNewCapture.Name = item.ToString(); this.lsvCapturedEvents.Items.Add(lviNewCapture); }
public void ProcessEvent(EventType etType, CapturableEvents ceEvent, params string[] a_strMessageParams) { if (this.CapturedEvents.Contains(ceEvent) == true) { DateTime dtLoggedTime = DateTime.Now; // UtcNow.AddHours(m_prcClient.Game.UTCoffset).ToLocalTime(); string strEventText = String.Empty; if (this.m_prcClient.Language.LocalizedExists("uscEvents.lsvEvents." + ceEvent.ToString()) == true) { strEventText = this.m_prcClient.Language.GetLocalized("uscEvents.lsvEvents." + ceEvent.ToString(), a_strMessageParams); } CapturedEvent newCapture = new CapturedEvent(etType, ceEvent, strEventText, dtLoggedTime, this.m_prcClient.InstigatingAccountName); this.ProcessEvent(newCapture); } }
private void CapturedEvents_ItemAdded(int iIndex, CapturableEvents item) { this.IsListModified = true; }