public void Clear() { if (_playerEditor.IsPresentPlayer) { DualSubParameters.Clear(); _playerEditor.RemovePlayer(); Update(); } }
private void UpdateDSubParams() { DualSubParameters.Clear(); if (_playerEditor.IsPresentPlayer) { IList <ISubParameterPlayer> currentSubParameters = _playerEditor.GetCurrentParametersValuesList(); IList <ISubParameterPlayer> editableSubParameters = _playerEditor.GetListForEditParameters(); for (byte i = 0; i < currentSubParameters.Count; i++) { DualSubParameterViewModel dSubParam = new DualSubParameterViewModel(currentSubParameters[i], editableSubParameters[i], _playerEditor); _dualSubParameters.Add(dSubParam); } } }