public MotorCommand(MainViewModel mvm) { this.mvm = mvm; MoveToCM = new MoveToCM(mvm); ToggleMotorPower = new ToggleMotorPower(mvm); CalibrateMotor = new CalibrateMotor(mvm); StopMotor = new StopMotor(mvm); }
public static MainViewModel GetInstance() { if (instance == null) { instance = new MainViewModel(); } return instance; }
static MainViewModel() { instance = null; }
public CalibrateMotor(MainViewModel mvm) { this.mvm = mvm; }
public ToggleMotorPower(MainViewModel mvm) { this.mvm = mvm; }
public StopMotor(MainViewModel mvm) { this.mvm = mvm; }
public MoveToCM(MainViewModel mvm) { this.mvm = mvm; }