示例#1
0
        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);
        }
示例#2
0
        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));
        }