Example #1
0
        public Stat(string path, bool withText = false)
        {
            Dir = Path.GetDirectoryName(path);
            StreamReader reader = new StreamReader(path);
            string       json   = reader.ReadToEnd();

            reader.Close();
            Info     = UseStatJson.GetStat(json);
            Interval = new Interval(Info.inter, Dir, withText);
        }
Example #2
0
 public void ChangeJson(string json, bool withText = false)
 {
     Info     = UseStatJson.GetStat(json);
     Interval = new Interval(Info.inter, Dir, withText);
 }
Example #3
0
 public Stat(string json, string dir, bool withText = false)
 {
     Dir      = dir;
     Info     = UseStatJson.GetStat(json);
     Interval = new Interval(Info.inter, dir, withText);
 }