public void Initialize(GestureModifierConfiguartion model) { _model = model; MoveModelToView(); }
private void btnAddModifier_Click(object sender, EventArgs e) { var mapping = lstMappings.SelectedItem as MappingConfiguration; if (mapping == null) return; GestureModifierConfiguartion modifier = new GestureModifierConfiguartion(); mapping.Gesture.Modifiers.Add(modifier); Int32 currentIndex = lstMappings.SelectedIndex; MoveModelToView(); lstMappings.SelectedIndex = currentIndex; }