Ejemplo n.º 1
0
 private void CharacterFilter_Logoff(object sender, LogoffEventArgs e)
 {
     try
     {
         AllQuestRedrawTimer.Stop();
         // Unsubscribe to events here, but know that this event is not gauranteed to happen. I've never seen it not fire though.
         // This is not the proper place to free up resources, but... its the easy way. It's not proper because of above statement.
     }
     catch (Exception ex) { Util.LogError(ex); }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// This is called when the plugin is shut down. This happens only once.
 /// </summary>
 protected override void Shutdown()
 {
     try
     {
         //Destroy the view.
         MVWireupHelper.WireupEnd(this);
         AllQuestRedrawTimer.Stop();
         AutoSaveTimer.Stop();
         SaveState();
     }
     catch (Exception ex) { Util.LogError(ex); }
 }
Ejemplo n.º 3
0
 void Stop_Click(object sender, MVControlEventArgs e)
 {
     AllQuestRedrawTimer.Stop();
     AutoSaveTimer.Stop();
 }