Ejemplo n.º 1
0
        public static EmployeeTripsWindow GetInstance(Employee empl)
        {
            if (State == null)
            {
                State = new EmployeeTripsWindow(empl);
            }

            if (State.employee.Id != empl.Id)
            {
                State = new EmployeeTripsWindow(empl);
            }

            return(State);
        }
 private void ShowTrips_Click(object sender, RoutedEventArgs e)
 {
     WorkingArea.Content = EmployeeTripsWindow.GetInstance(employee);
 }