Ejemplo n.º 1
0
        private void DeleteSelectedCharacterStartingStatModifierButton_Click(object sender, RoutedEventArgs e)
        {
            object dgr      = (sender as Button).FindName("CharacterStartingStatModifierGridRoot");
            object selected = (dgr as DataGrid).SelectedItem;

            if (selected != null)
            {
                GameDataViewObject.deleteObject(selected as gamedataObject);
            }
        }
Ejemplo n.º 2
0
        private void DeleteSelectedQuestStepChoiceHenchmanGrantButton_Click(object sender, RoutedEventArgs e)
        {
            object dgr      = (sender as Button).FindName("QuestStepChoiceHenchmanGrantGridRoot");
            object selected = (dgr as DataGrid).SelectedItem;

            if (selected != null)
            {
                GameDataViewObject.deleteObject(selected as gamedataObject);
            }
        }
Ejemplo n.º 3
0
 private void DeleteSelectedQuestStepButton_Click(object sender, RoutedEventArgs e)
 {
     GameDataViewObject.deleteObject(GameDataViewObject.SelectedQuestStep);
 }