public void GetData() { if (DesignerProperties.GetIsInDesignMode(new System.Windows.DependencyObject())) { return; } Employee = GlobalDataAccess.GetEmployees(EmployeeId).FirstOrDefault(); }
public void LoadEmployees() { if (DesignerProperties.GetIsInDesignMode(new System.Windows.DependencyObject())) { return; } Employees = new ObservableCollection <Employee>(GlobalDataAccess.GetEmployees()); }