示例#1
0
        /// <summary>
        /// The function that restarts the form.
        /// </summary>
        private void buttonRestartForm_Click(object sender, RoutedEventArgs e)
        {
            WindowFormName firstWindow = new WindowFormName();

            firstWindow.Show();
            this.Close();
        }
示例#2
0
        /// <summary>
        /// The function of moving to the previous window.
        /// </summary>
        private void buttonPrevious_Click(object sender, RoutedEventArgs e)
        {
            WindowFormName firstForm = new WindowFormName(_person);

            firstForm.Show();
            this.Close();
        }