Exemple #1
0
        private void Row_DoubleClick_Show_Valid_Status(object sender, MouseButtonEventArgs e)
        {
            Ventilator_status selectedVentilatorStatus = (Ventilator_status)validStatus.SelectedItem;
            Employee          selectedEmployee         = (Employee)ServiceTechnicians.SelectedItem;
            ErrorStatus       window = new ErrorStatus(selectedVentilatorStatus, selectedEmployee);

            window.Show();
        }
Exemple #2
0
        private void Row_DoubleClick_Show_Invalid_Status(object sender, MouseButtonEventArgs e)
        {
            Employee selectedEmployee = (Employee)ServiceTechnicians.SelectedItem;

            if (!(selectedEmployee == null))
            {
                Ventilator_status selectedVentilatorStatus = (Ventilator_status)invalidStatus.SelectedItem;
                window_ErrorStatus = new ErrorStatus(selectedVentilatorStatus, selectedEmployee);
                window_ErrorStatus.Show();
            }
            else
            {
                MessageBox.Show("Vælg service tekniker!", "Manlgende input", MessageBoxButton.OK, MessageBoxImage.Hand);
            }
        }