public static void RemovePlugin <T>() { foreach (var item in CommandMap) { if (typeof(T) != item.Value.GetType()) { continue; } CommandMap.Remove(item.Key, out _); } foreach (var item in ServiceList) { if (typeof(T) != item.GetType()) { continue; } ServiceList.Remove(item); } foreach (var item in ApplicationList) { if (typeof(T) != item.GetType()) { continue; } ApplicationList.Remove(item); } }
public void Remove(ApplicationVM obj) { ApplicationList.Remove(obj); }