public int Compare(object x, object y) { RegistryLineModel xLine = (RegistryLineModel)x; RegistryLineModel yLine = (RegistryLineModel)y; int result; result = xLine.Date.CompareTo(yLine.Date); return(result); }
private bool RegistryFilter(object item) { RegistryLineModel row = (RegistryLineModel)item; bool keep = false; if (row.AccountID == this.currentAccount.ID) { keep = true; } return(keep); }