Ejemplo n.º 1
0
 public MainViewModel()
 {
     dataStringFromEngine = string.Empty;
     calculatingStatus = string.Empty;
     isEngineFree = true;
     engine = new ModelSimulator();
     calculateCommand = new DelegateCommand(this.executeCalculateCommand, this.canExecuteCalculateCommand);
     calculateCommandWithParameter = new DelegateCommand<string>(this.executeCalculateCommandWithParameter, this.canExecuteCalculateCommandWithParameter);
     winloadedCommand = new DelegateCommand(this.executeWinloadedCommand, this.canWinloadedCommand);
     cancelCalculateCommand = new DelegateCommand(this.executeCancelCalculateCommand, this.canExecuteCancelCalculateCommand);
 }
Ejemplo n.º 2
0
 public MainViewModel()
 {
     dataStringFromEngine = string.Empty;
     calculatingStatus    = string.Empty;
     isEngineFree         = true;
     engine           = new ModelSimulator();
     calculateCommand = new DelegateCommand(this.executeCalculateCommand, this.canExecuteCalculateCommand);
     calculateCommandWithParameter = new DelegateCommand <string>(this.executeCalculateCommandWithParameter, this.canExecuteCalculateCommandWithParameter);
     winloadedCommand       = new DelegateCommand(this.executeWinloadedCommand, this.canWinloadedCommand);
     cancelCalculateCommand = new DelegateCommand(this.executeCancelCalculateCommand, this.canExecuteCancelCalculateCommand);
 }