public cXPCounting(cClassGroup csg) { timer.Tick += new EventHandler(timer_Tick); timer.Interval = 1000 * 60; C = csg; C.Core.CharacterFilter.LoginComplete += new EventHandler(CharacterFilter_LoginComplete); C.Core.MessageProcessed += new EventHandler <Decal.Adapter.MessageProcessedEventArgs>(Core_MessageProcessed); for (int i = 0; i < 6; ++i) { lastxp5[i] = -1; } }
protected override void Startup() { try { ClassGroup = new cClassGroup(Host, Core); InitView(); MyClasses.MyTimer.Init(Host, LogError); Core.PluginInitComplete += new EventHandler <EventArgs>(Core_PluginInitComplete); } catch (Exception ex) { errorLogging.LogError(errorLogFile, ex); } }
protected override void Shutdown() { try { if (statustimer != null) { statustimer.Dispose(); statustimer = null; } Core.PluginInitComplete -= new EventHandler <EventArgs>(Core_PluginInitComplete); DestroyView(); ClassGroup.Dispose(); ClassGroup = null; } catch (Exception ex) { errorLogging.LogError(errorLogFile, ex); } }