Exemple #1
0
 /// <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);
 }
Exemple #2
0
 public CalculatorViewModel()
 {
     _buttonPress = new ButtonPressCommand(this);
 }