示例#1
0
        private void ButtonItemChoice_Click(object sender, RoutedEventArgs e)
        {
            Item item = (sender as Button)?.DataContext as Item;

            ChoiceWindow window = new ChoiceWindow();

            window.ID = Convert.ToUInt32(item.id);
            window.ShowDialog();
            item.id = window.ID.ToString();
        }
示例#2
0
        private void ButtonCardChoice_Click(object sender, RoutedEventArgs e)
        {
            MiniGameCard card = (sender as Button)?.DataContext as MiniGameCard;

            ChoiceWindow window = new ChoiceWindow();

            window.Type = ChoiceWindow.eType.eCard;
            window.ID   = Convert.ToUInt32(card.id);
            window.ShowDialog();
            card.id = window.ID.ToString();
        }