Exemplo n.º 1
0
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(DownloadForm));

            this.downloadView = new DoomLauncher.DownloadView();
            base.SuspendLayout();
            this.downloadView.Dock     = DockStyle.Fill;
            this.downloadView.Location = new Point(0, 0);
            this.downloadView.Name     = "downloadView";
            this.downloadView.Size     = new Size(0x11c, 0x106);
            this.downloadView.TabIndex = 0;
            base.AutoScaleDimensions   = new SizeF(6f, 13f);
            base.AutoScaleMode         = AutoScaleMode.Font;
            base.ClientSize            = new Size(0x11c, 0x106);
            base.Controls.Add(this.downloadView);
            base.Icon     = (Icon)manager.GetObject("$this.Icon");
            base.Name     = "DownloadForm";
            base.ShowIcon = false;
            this.Text     = "Downloads";
            base.ResumeLayout(false);
        }
Exemplo n.º 2
0
 public DownloadHandler(LauncherPath downloadDirectory, DoomLauncher.DownloadView view)
 {
     this.DownloadDirectory  = downloadDirectory;
     this.DownloadView       = view;
     view.DownloadCancelled += new EventHandler(this.view_DownloadCancelled);
 }