Example #1
0
        // Potion button on-click handler.
        private void PotionBtn_Click(object sender, RoutedEventArgs e)
        {
            // Add generated item to list.
            ListBoxItem generatedItem = new ListBoxItem();

            generatedItem.Content = PotionGenerator.GenPotion();
            MainList.Items.Insert(0, generatedItem);
        }
Example #2
0
 public MainWindow()
 {
     InitializeComponent();
     PotionGenerator.Initialize();
 }