public long ResourceAdd <T>(T obj) { var resource = new Resource_2D(obj); Resources.Add(resource); return(resource.index); }
public void ResourceUpDate(Resource_2D row) { var resource = Resources.Find(o => o.index == row.index); resource.obj = row.obj; }