Exemplo n.º 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;
        }
Exemplo n.º 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;
        }