public void Add(string text, string pwd) { PasswordItem h = new PasswordItem(); h.Text = text; h.Pwd = pwd; ListPassword.Add(h); Save(); }
public Password() { if (!File.Exists(Filepass)) { PasswordItem h = new PasswordItem(); h.Text = "Google"; h.Pwd = "satria89"; ListPassword.Add(h); var pass = JsonConvert.SerializeObject(ListPassword); Utils.WriteFileAsync(Filepass, pass); } else { Load(); } }