namespace PRSDesktop { } //class DynamicEmployeeStatusColumn : DynamicActionColumn where T : Entity //{ // private BitmapImage clockedin = PRSDesktop.Resources.tick.AsBitmapImage(); // private BitmapImage leave = PRSDesktop.Resources.beach.AsBitmapImage(); // private BitmapImage sick = PRSDesktop.Resources.sick.AsBitmapImage(); // private BitmapImage header = PRSDesktop.Resources.clock.AsBitmapImage(); // public Expression> Property { get; private set; } // public DynamicEmployeeStatusColumn(Expression> property) : base() // { // Property = property; // Image = StatusImage; // Action = null; // } // private BitmapImage StatusImage(CoreRow row) // { // if (row == null) // return header; // EmployeeStatus status = (EmployeeStatus)row.Get(Property); // if (status == EmployeeStatus.In) // return clockedin; // else if (status == EmployeeStatus.Leave) // return leave; // else if (status == EmployeeStatus.Sick) // return sick; // return null; // } //}