public void DownCommand(TestVM curr) { if (InfoCollection.IndexOf(curr) < InfoCollection.Count) { InfoCollection.Move(InfoCollection.IndexOf(curr), InfoCollection.IndexOf(curr) + 1); } }
//public static TestVM building1 { set; get; } public void UpCommand(TestVM curr) { if (InfoCollection.IndexOf(curr) >= 1) { InfoCollection.Move(InfoCollection.IndexOf(curr), InfoCollection.IndexOf(curr) - 1); } }