Beispiel #1
0
        private void ButtonItemChoice_Click(object sender, RoutedEventArgs e)
        {
            Item item = (sender as Button)?.DataContext as Item;
            var  dlg  = new ChoiceWindow();

            dlg.ID = item.ID;
            dlg.ShowDialog();
            item.ID = dlg.ID;
        }
Beispiel #2
0
        private void ButtonAccessoryChoice_Click(object sender, RoutedEventArgs e)
        {
            var chara = ListBoxParty.SelectedItem as Charactor;

            if (chara == null)
            {
                return;
            }

            var dlg = new ChoiceWindow();

            dlg.Type = ChoiceWindow.eType.eAccessory;
            dlg.ID   = chara.Accessory;
            dlg.ShowDialog();
            chara.Accessory = dlg.ID;
        }