private void Uninstall_Click(object sender, RoutedEventArgs e) { if (_log.IsDebugEnabled) { _log.DebugFormat("Starting {0}", MethodBase.GetCurrentMethod().ToString()); } Button btn = sender as Button; if (btn != null) { ModConfiguration mod = btn.CommandParameter as ModConfiguration; if (mod != null) { ModManagement.Uninstall(mod); this.RaiseEvent(new RoutedEventArgs(ModUninstalledEvent, mod)); } } if (_log.IsDebugEnabled) { _log.DebugFormat("Ending {0}", MethodBase.GetCurrentMethod().ToString()); } }