예제 #1
0
 public MotorCommand(MainViewModel mvm)
 {
     this.mvm = mvm;
     MoveToCM = new MoveToCM(mvm);
     ToggleMotorPower = new ToggleMotorPower(mvm);
     CalibrateMotor = new CalibrateMotor(mvm);
     StopMotor = new StopMotor(mvm);
 }
예제 #2
0
 public static MainViewModel GetInstance()
 {
     if (instance == null)
     {
         instance = new MainViewModel();
     }
     return instance;
 }
예제 #3
0
 static MainViewModel()
 {
     instance = null;
 }
예제 #4
0
 public CalibrateMotor(MainViewModel mvm)
 {
     this.mvm = mvm;
 }
예제 #5
0
 public ToggleMotorPower(MainViewModel mvm)
 {
     this.mvm = mvm;
 }
예제 #6
0
 public StopMotor(MainViewModel mvm)
 {
     this.mvm = mvm;
 }
예제 #7
0
 public MoveToCM(MainViewModel mvm)
 {
     this.mvm = mvm;
 }