public GuetSubViewModel(HttpRequestConfig config, SitesProvider provider, ILogable logger, string fileName) : base(fileName)
 {
     requester = new Requester(config);
     //GuetModelProvider
     CurrentPage = provider.getSiteModel("Bkjw")?.getWebPageModel(DefaultKey.SelectCourse);
     this.logger = logger;
 }
예제 #2
0
 public GuetViewModel()
 {
     //GuetModelProvider
     guetModelProvider = new SitesProvider(new SitesDataProvider("GuetSample.Resources.Data"));
     guetBkjw          = guetModelProvider.getSiteModel("Bkjw");
     if (guetBkjw != null)
     {
         SelectPage = guetBkjw.getWebPageModel(DefaultKey.SelectCourse);
         //HttpRequestConfig
         Encoding encoding = Encoding.GetEncoding(guetBkjw.EncodingName);
         httpRequestConfig = new HttpRequestConfig(encoding);
         httpRequestConfig.HoleCookieContainer = HttpControlCenter.CommonCookieContainer;
         //AsyncHttpRequestProvider
         requester = new Requester(httpRequestConfig);
     }
     consoleBuilder = new StringBuilder();
 }