Example #1
0
        public void Add(string text, string pwd)
        {
            PasswordItem h = new PasswordItem();

            h.Text = text;
            h.Pwd  = pwd;
            ListPassword.Add(h);
            Save();
        }
Example #2
0
 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();
     }
 }