예제 #1
0
        private void AddFunds_Click(object sender, RoutedEventArgs e)
        {
            MoneyWindow money = new MoneyWindow();

            // Add an event handler to update this form

            // when the profile form is updated (when MoneyUpdated fires).
            money.MoneyProfileUpdated += new MoneyWindow.MoneyUpdateHandler(AddFunds_ButtonClicked);
            money.Show();
        }
예제 #2
0
        private void GotoMoney_Click(object sender, RoutedEventArgs e)
        {
            Consoletxtblock.Text += "Go to Money Click..." + Environment.NewLine;
            MoneyWindow money = new MoneyWindow();

            // Add an event handler to update this form

            // when the profile form is updated (when MoneyUpdated fires).
            money.MoneyProfileUpdated += new MoneyWindow.MoneyUpdateHandler(GotoMoney_ButtonClicked);
            money.Show();
        }