/// <summary> /// Constructor for View model, settings are not stored in a persistent manner since only one /// connection is allowed per the spec, and the settings could change between use. /// </summary> /// <param name="connection"></param> public ConnectionViewModel(Connection connection) { _connection = connection; WindowClosing = new WindowClosingCommand(this); StartCommand = new ConnectionStartCommand(this); ButtonPress = new ButtonPressCommand(this); }
public CalculatorViewModel() { _buttonPress = new ButtonPressCommand(this); }