public FileDownload(WebBrowser Cls,String Url,ucStore host,bool Testing) { this.Url =new Uri(Url); Host=host; Client = Cls; this.Testing=Testing; FX = new WebClient(); StartDownload(); }
public MainForm() { SetStyle(ControlStyles.OptimizedDoubleBuffer, true); Skybound.Gecko.Xpcom.Initialize("xulrunner"); // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); /// <summary> /// Read settings /// </summary> /// <returns></returns> ReadSettings(); /// Define views Views = new Dictionary<String,UserControl>(); DM = new DownloadManager(); Store = new ucStore(this); nowPlaying = new MultiMedia.NowPlaying(); Library = new Library(); Settings = new Settings(this); this.panel1.Controls.Add(Settings); this.panel1.Controls.Add(DM); this.panel1.Controls.Add(Store); this.panel1.Controls.Add(Library); this.panel1.Controls.Add(nowPlaying); /// <summary> /// Add the panes to the player /// </summary> Store.Manager=DM; Views.Add("NowPlaying",nowPlaying); Views.Add("Downloads",DM); Views.Add("Settings",Settings); Views.Add("Store",Store); Views.Add("Library",Library); nowPlaying.Show(); ActivateView("Library"); // This is a service token for the swedish service 'CDON.com' TrackServiceTokens.Add("dle.247.base.com","tomcat"); AlbumServiceTokens.Add("downloads.cdon.com","getDlFile.phtml"); /// <summary> /// Set built-in media engines /// </summary> /// <returns></returns> // // TODO: Add additional engine loading here // // // TODO: Add constructor code after the InitializeComponent() call. // }