public void Enabled() { SnapIn = new TennisSnapIn(); if (!string.IsNullOrEmpty(Settings.LastTemplateFilter)) { SnapIn.CurrentFilter = Settings.LastTemplateFilter; } }
public void Disabled() { if (SnapIn.CurrentFilter == null) { Settings.LastTemplateFilter = null; } else { Settings.LastTemplateFilter = SnapIn.CurrentFilter; } SnapIn.Unload(); SnapIn = null; }