Ejemplo n.º 1
0
        private void btnFault_Click(object sender, RoutedEventArgs e)
        {
            FaultReport fault = new FaultReport();

            fault.Show();
            this.Close();
        }
Ejemplo n.º 2
0
        private void btnCancleFault_Click(object sender, RoutedEventArgs e)
        {
            MessageBoxResult result = MessageBox.Show("Are you sure you wish to leave this window? Any entered information will be deleted!", "Fault report", MessageBoxButton.YesNo, MessageBoxImage.Warning);

            switch (result)
            {
            case MessageBoxResult.Yes:
                FaultReport report = new FaultReport();
                report.Show();
                this.Close();
                break;

            case MessageBoxResult.No:
                break;
            }
        }