示例#1
0
文件: Password.cs 项目: Mrivai/Petir
        public void Add(string text, string pwd)
        {
            PasswordItem h = new PasswordItem();

            h.Text = text;
            h.Pwd  = pwd;
            ListPassword.Add(h);
            Save();
        }
示例#2
0
文件: Password.cs 项目: Mrivai/Petir
 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();
     }
 }