示例#1
0
        public CapturedEvent(EventType eventType, CapturableEvents capturableEvent, string eventText, DateTime loggedTime, string instigatingAdmin) {
            EventType = eventType;
            Event = capturableEvent;
            EventText = eventText;
            LoggedTime = loggedTime;

            InstigatingAdmin = instigatingAdmin;
        }
示例#2
0
        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;
        }
示例#3
0
 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()]);
     }
 }
示例#4
0
 private void CapturedEvents_ItemAdded(int iIndex, CapturableEvents item) {
     ListViewItem lviNewCapture = new ListViewItem(item.ToString());
     lviNewCapture.Name = item.ToString();
     this.lsvCapturedEvents.Items.Add(lviNewCapture);
 }
示例#5
0
        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);
            }
        }
示例#6
0
 private void CapturedEvents_ItemAdded(int iIndex, CapturableEvents item) {
     this.IsListModified = true;
 }
示例#7
0
 private void CapturedEvents_ItemAdded(int iIndex, CapturableEvents item)
 {
     this.IsListModified = true;
 }