PasswordManagerLib/PasswordManagerCore.cs
///<summary>
///Static method for Write Accounts to save file
///</summary>
Static method for Write Accounts to save file
Static method for Write Accounts to save file
private async static void WriteAccountFile(XmlSerializer xmlSerializer, List<Account> accounts)
        {
            XmlWriterSettings settings = new XmlWriterSettings();
            settings.Indent = true;
            using(XmlWriter xmlWriter = XmlWriter.Create(AccountFile, settings))
            {
                await Task.Run(()=> 
                {
                    xmlSerializer.Serialize(xmlWriter, accounts);
                });
            }
        }
private async static void WriteAccountFile ( XmlSerializer xmlSerializer , List < Account > accounts ) { XmlWriterSettings settings = new XmlWriterSettings ( ) ; settings . Indent = true ; using ( XmlWriter xmlWriter = XmlWriter . Create ( AccountFile , settings ) ) { await Task . Run ( ( ) => { xmlSerializer . Serialize ( xmlWriter , accounts ) ; } ) ; } }
Static method for Write Accounts to save file
Static method for Write Accounts to save file
//Create a xmlWriter //Write into a account file async
xmlSerializer
XmlSerializer
accounts
List<Account>