private void StandaloneUploaderForm_Load(object sender, EventArgs e) { for (int i = 0; i < fileNames.Length; i++) { TabPage page = new TabPage("Image " + (i + 1)); StandaloneUploaderControl uploaderControl = new StandaloneUploaderControl() { Top = 2, Left = 2, Dock = DockStyle.Fill, FileName = fileNames[i] }; uploaderControls.Add(uploaderControl); page.Controls.Add(uploaderControl); tabControl.TabPages.Add(page); } }
private void BeginUpload(StandaloneUploaderControl uc) { uc.UploadCompleted += new EventHandler<EventArgs>(uc_UploadCompleted); uc.BeginUpload(); }
private void BeginUpload(StandaloneUploaderControl uc) { uc.UploadCompleted += new EventHandler <EventArgs>(uc_UploadCompleted); uc.BeginUpload(); }