void AddFootwork() { var vm = new TagViewModel <Footwork>(m_ApiClient); var dialog = new TagEditorDialog() { DataContext = vm }; var result = dialog.ShowDialog(); if (result == true) { Tags.Footwork.Insert(1, vm.Tag); } }
void AddTechnique() { var vm = new TagViewModel <Technique>(m_ApiClient); var dialog = new TagEditorDialog() { DataContext = vm }; var result = dialog.ShowDialog(); if (result == true) { Tags.Techniques.Insert(1, vm.Tag); } }
void AddGuardModifier() { var vm = new TagViewModel <GuardModifier>(m_ApiClient); var dialog = new TagEditorDialog() { DataContext = vm }; var result = dialog.ShowDialog(); if (result == true) { Tags.GuardModifiers.Insert(1, vm.Tag); } }