public override void Execute(object parameter) { var classBrowser = SD.GetService <IClassBrowser>(); if (classBrowser != null) { IAssemblyModel assemblyModel = (IAssemblyModel)parameter; if (assemblyModel.IsUnpinned()) { classBrowser.UnpinnedAssemblies.Assemblies.Remove(assemblyModel); } else { classBrowser.MainAssemblyList.Assemblies.Remove(assemblyModel); } } }