//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); } }
public void DownCommand(TestVM curr) { if (InfoCollection.IndexOf(curr) < InfoCollection.Count) { InfoCollection.Move(InfoCollection.IndexOf(curr), InfoCollection.IndexOf(curr) + 1); } }
public string Serialize() { if (CurrentInfo != null) { CurrentInfoIndex = InfoCollection.IndexOf(CurrentInfo); } XmlSerializer serializer = new XmlSerializer(typeof(AppData)); using (StringWriter stringWrite = new StringWriter()) { serializer.Serialize(stringWrite, this); return(stringWrite.GetStringBuilder().ToString()); } }