static public HtmlDocument GetGenrePageHtml() { var genrePageUrl = ConfigsMain.GetDomen() + "/g"; if (_genrePage == null) { _genrePage = RequestSender.GetRequestPage(genrePageUrl); } return(_genrePage); }
public Form1() { InitializeComponent(); _siteDomen = ConfigsMain.GetDomen(); _currentDirectory = Environment.CurrentDirectory; load_picturebox.Image = Image.FromFile(_currentDirectory + @"\Images\loading.gif"); annotation_text.Hide(); book_name_field.Hide(); _bookDirectory = Environment.CurrentDirectory + @"\Books\"; Directory.CreateDirectory(_bookDirectory); _parser = new HtmlParser(_siteDomen); var a = new Thread(LoadButtons); a.Start(); splitContainer1.Panel1.Hide(); }