Exemplo n.º 1
0
        public ReviewManager(ReviewParams reviewParams)
        {
            _reviewParams  = reviewParams;
            _storage       = new InternalStorage("Reviewer");
            _reviewService = new ReviewService(_storage);

            if (!reviewParams.UseOwnDictionary)
            {
                return;
            }

            var ownDictionary = JsonConvert.DeserializeObject <List <Word> >(_reviewParams.PathOwnDictionary);

            _reviewService.SetOwnDictionary(ownDictionary);
        }
Exemplo n.º 2
0
 private static void Main(string[] args)
 {
     try
     {
         var reviewParams = new ReviewParams
         {
             PathDocument        = args[0],
             UseGlobalDictionary = Convert.ToBoolean(args[1]),
             UseOwnDictionary    = Convert.ToBoolean(args[2]),
             PathOwnDictionary   = args.Length < 4 ? null : args[3]
         };
         var reviewManager = new ReviewManager(reviewParams);
         reviewManager.Review();
     }
     catch (Exception ex)
     {
         Console.Error.WriteLine(ex);
     }
 }