コード例 #1
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            var nanny = new NannyWindow();

            Close();
            nanny.ShowDialog();
        }
コード例 #2
0
        private void NannyButton_Click(object sender, RoutedEventArgs e)
        {
            Window nannyWindow = new NannyWindow();

            nannyWindow.Show();
        }
コード例 #3
0
        /// <summary>
        /// Event: when clicking on the button - go to the asked window.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void goToNannyPage(object sender, RoutedEventArgs e)
        {
            Window nannyPage = new NannyWindow();

            nannyPage.ShowDialog();
        }
コード例 #4
0
        private void Nanny_Click(object sender, RoutedEventArgs e)
        {
            Window Nanny = new NannyWindow();

            Nanny.Show();
        }