public RecognitionMonitorViewModel(StatisticalClassifier classifier) { _classifier = classifier; _dgRecorder = new DGRecorder(inRecordMode: false); CurrentState = _dgRecorder.State; RankedStaticGestures = new ObservableCollection <GestureDistance>(); RankedDynamicGestures = new ObservableCollection <GestureDistance>(); Mode = GestureType.Static; // Probably not necessary to initialize Active = true; }
public EditDynamicGestureViewModel(MainViewModel mvm, DGClassWrapper gesture = null, bool newGesture = false) { _mvm = mvm; _newGesture = newGesture; _provider = _mvm.SQLiteProvider; _recorder = new DGRecorder(_mvm); if (newGesture) { Name = "New Dynamic Gesture"; Instances = new ObservableCollection <DGInstanceWrapper>(); } else { Name = gesture.Name; Id = gesture.Id; Instances = _provider.GetDynamicGestureInstances(gesture.Id); } Changeset = new EditDynamicGestureChangeset(); }