Beispiel #1
0
        private void readDataFromInfoFile()
        {
            Stream     infoStream = new FileStream(InfoFileInfo.FullName, FileMode.Open);
            TextReader reader     = new StreamReader(infoStream, Encoding.UTF32);
            string     serialized = reader.ReadToEnd();

            reader.Close();
            state = JsonConvert.DeserializeObject <JSONBlogUserState>(serialized);
        }
 public JSONBlogUser(DirectoryInfo userDirectory,string username,string password)
 {
     this.userDirectory = userDirectory;
     state = new JSONBlogUserState(username);
     Password = password;
 }
Beispiel #3
0
 public JSONBlogUser(DirectoryInfo userDirectory, string username, string password)
 {
     this.userDirectory = userDirectory;
     state    = new JSONBlogUserState(username);
     Password = password;
 }
 private void readDataFromInfoFile()
 {
     Stream infoStream = new FileStream(InfoFileInfo.FullName, FileMode.Open);
     TextReader reader =  new StreamReader(infoStream,Encoding.UTF32);
     string serialized = reader.ReadToEnd();
     reader.Close();
     state = JsonConvert.DeserializeObject<JSONBlogUserState>(serialized);
 }