The CutPresentationCommand class
public class CutPresentationCommand : IUndoCommand
public void Undo()
_arg.Presenter = _cutModel.Presenter;
_arg.Summary = _cutModel.Summary;
_arg.Title = _cutModel.Title;
public bool CanExecute(object parameter)
public event EventHandler CanExecuteChanged;
public void Execute(object parameter)
// is a not a redo?
if (parameter != null)
_arg = parameter as ViewModel.Presentation;
_cutModel = new ViewModel.Presentation()
Presenter = _arg.Presenter,
Summary = _arg.Summary,
Title = _arg.Title
_arg.Presenter = String.Empty;
_arg.Summary = String.Empty;
_arg.Title = String.Empty;
About the Author
Eric Vogel is a Senior Software Developer for Red Cedar Solutions Group in Okemos, Michigan. He is the president of the Greater Lansing User Group for .NET. Eric enjoys learning about software architecture and craftsmanship, and is always looking for ways to create more robust and testable applications. Contact him at [email protected].
With Visual Studio v17.6 becoming generally available recently, Microsoft provided a peek at what's coming up in the next iteration, VS 2022 v17.7
Dev team shows how Welcome revamp was first presented and then how it was shaped by community feedback.
Microsoft's regular monthly update to Java on Visual Studio Code (May 2023) brings new features around performance improvement, the user experience and Spring Boot integration, among many others.
Dr. James McCaffrey of Microsoft Research says the main advantage of using Gaussian naive Bayes classification compared to other techniques like decision trees or neural networks is that you don't have to fine tune model parameters.
> More Webcasts