public MsBoxStandardViewModel(MessageBoxStandardParams @params, MsBoxStandardWindow msBoxStandardWindow) : base(@params, @params.Icon) { _window = msBoxStandardWindow; SetButtons(@params.ButtonDefinitions); ButtonClickCommand = new RelayCommand(o => ButtonClick(o.ToString())); EnterClickCommand = new RelayCommand(o => EnterClick()); EscClickCommand = new RelayCommand(o => EscClick()); }
public MsBoxStandardViewModel(MessageBoxStandardParams @params, MsBoxStandardWindow msBoxStandardWindow) : base(@params) { ContentMessage = @params.ContentMessage; _window = msBoxStandardWindow; SetButtons(@params.ButtonDefinitions); ButtonClickCommand = ReactiveCommand.Create <string>(ButtonClick); EnterClickCommand = ReactiveCommand.Create(EnterClick); EscClickCommand = ReactiveCommand.Create(EscClick); }
// public ReactiveCommand<string, Unit> ButtonClickCommand { get; private set; } public MsBoxStandardViewModel(MessageBoxStandardParams @params) : base(@params) { _window = @params.Window; SetButtons(@params.ButtonDefinitions); }