Example #1
0
        public BookWindowViewModel(WindowToken token)
        {
            Requires.NotNull(token, nameof(token));
            Token = token;

            Activate = new RelayCommand(obj => SessionCommands.ActivateWindow(Token.Id));
        }
 public static BookWindowViewModel ConvertWindow(WindowToken token)
 {
     Requires.NotNull(token, nameof(token));
     return(new BookWindowViewModel(token));
 }