public void saveLoginObjects() { Serializer ser = new Serializer(); string xmlOutputData = string.Empty; Logins logs = new Logins(); logs.LoginList = infos.LoginList; logs.VersionNo = infos.CurrentVersion; xmlOutputData = ser.Serialize <Logins>(logs); File.WriteAllText(path, xmlOutputData); }
private void fillListViews() { Logins logs = xml.getLoginObjects(); infos.LoginList = logs.LoginList; infos.CurrentVersion = logs.VersionNo; lViewLogs.Items.Clear(); lViewFavorites.Items.Clear(); lViewLogs.Items.AddRange(editLV.addList(lViewLogs)); lViewFavorites.Items.AddRange(editLV.addListFav(lViewFavorites)); }