/// <summary> /// Sets a new mod image. /// </summary> public void SetNewImage() { if (_setModImageCommand.CanExecute(null)) { _setModImageCommand.Execute(null); } }
private void Image_PreviewMouseDown(object sender, MouseButtonEventArgs e) { if (_setModImageCommand.CanExecute(null)) { _setModImageCommand.Execute(null); e.Handled = true; } }
/// <summary> /// Sets a new mod image. /// </summary> public void SetNewImage() { if (!_setModImageCommand.CanExecute(null)) { return; } _setModImageCommand.Execute(null); }