public frmChanThreadWatch() { InitializeComponent(); Icon = Resources.ChanThreadWatchIcon; Gui.SetFontAndScaling(this); Gui.ScaleColumns(lvThreads); Gui.EnableDoubleBuffering(lvThreads); Settings.Load(); BindCheckEveryList(); BuildCheckEverySubMenu(); BuildColumnHeaderMenu(); if (String.IsNullOrEmpty(Settings.DownloadFolder) || !Directory.Exists(Settings.AbsoluteDownloadDirectory)) { Settings.DownloadFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "Watched Threads"); Settings.DownloadFolderIsRelative = false; } chkPageAuth.Checked = Settings.UsePageAuth; txtPageAuth.Text = Settings.PageAuth; chkImageAuth.Checked = Settings.UseImageAuth; txtImageAuth.Text = Settings.ImageAuth; chkOneTime.Checked = Settings.OneTimeDownload; cboCheckEvery.SelectedValue = Settings.CheckEvery; if (cboCheckEvery.SelectedIndex == -1) { cboCheckEvery.SelectedValue = 3; } ThreadDoubleClickAction = Settings.ThreadDoubleClickAction; }
public frmDownloads(frmChanThreadWatch parentForm) { InitializeComponent(); Gui.SetFontAndScaling(this); Gui.ScaleColumns(lvDownloads); Gui.EnableDoubleBuffering(lvDownloads); _parentForm = parentForm; }