You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

40 lines
886 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UserControlLib
{
public class ViewAllRows : IComparable
{
public string TagId { get; set; }
public string SerialId { get; set; }
public string StationCode { get; set; }
public string TagType { get; set; }
private List<ViewItem> _viewItems;
public List<ViewItem> ViewItems
{
get
{
return _viewItems;
}
set
{
_viewItems.Sort();
_viewItems = value;
}
}
public int CompareTo(object obj)
{
ViewAllRows viewColumn = (ViewAllRows)obj;
return Convert.ToInt32( this.TagId)-Convert.ToInt32( viewColumn.TagId);
}
}
}