public void Unregister <VM>()
 {
     ViewModelToWindowMap.Remove(typeof(VM));
 }
 public void Register <VM, W>() where W : Window, new() where VM : class
 {
     ViewModelToWindowMap.Add(typeof(VM), typeof(W));
 }