Example #1
0
 private void PluginStatus_ValueChanged(Divine.Menu.Items.MenuSwitcher switcher, Divine.Menu.EventArgs.SwitcherEventArgs e)
 {
     if (e.Value)
     {
         TemplarAssasin = new TemplarAssasin(this);
         TargetManager  = new TargetManager(this);
         SpellHelper    = new SpellHelper(this);
         ItemHelper     = new ItemHelper(this);
         Harass         = new Harass(this);
         Combo          = new Combo(this);
     }
     else
     {
         TemplarAssasin.Dispose();
         TargetManager.Dispose();
         Harass.Dispose();
         Combo.Dispose();
         SpellHelper.Dispose();
         ItemHelper.Dispose();
     }
 }