Ejemplo n.º 1
0
        public void Stop()
        {
            wurmApi.LogsMonitor.Unsubscribe(CharacterName, OnNewLogEvents);

            timersFeature.UnregisterTimersGroup(layoutControl);
            if (character != null)
            {
                character.LogInOrCurrentServerPotentiallyChanged -= CharacterOnLogInOrCurrentServerPotentiallyChanged;
            }
            foreach (var timer in timers)
            {
                timer.Stop();
            }
            layoutControl.Dispose();
        }