internal BeatmapSubmissionSystem(bool hasVideo) { this.hasVideo = hasVideo; InitializeComponent(); checkLoad.Checked = ConfigManager.sLoadSubmittedThread; checkNotify.Checked = ConfigManager.sNotifySubmittedThread; //timer1.Start(); beatmaps = BeatmapManager.BeatmapAvailable.FindAll( b => b.Artist == BeatmapManager.Current.Artist && b.Title == BeatmapManager.Current.Title && b.Creator == BeatmapManager.Current.Creator); BanchoClient.UpdateStatus(bStatus.Submitting); //w.UploadProgressChanged += new UploadProgressChangedEventHandler(w_UploadProgressChanged); }
protected override void OnClosing(CancelEventArgs e) { formClosing = true; if (oszFilename != null) { File.Delete(oszFilename); } if (fileUpload != null) { fileUpload.Close(); } base.OnClosing(e); BanchoClient.UpdateStatus(bStatus.Editing); }
internal BeatmapSubmissionSystem(Editor editor, bool hasVideo, bool hasStoryboard) { this.editor = editor; this.hasVideo = hasVideo; this.hasStoryboard = hasStoryboard; InitializeComponent(); Editor.IsSubmitting = true; checkLoad.Checked = ConfigManager.sLoadSubmittedThread; checkNotify.Checked = ConfigManager.sNotifySubmittedThread; //Quite naive matching here... beatmaps = BeatmapManager.Beatmaps.FindAll(b => b.ContainingFolder == BeatmapManager.Current.ContainingFolder); BanchoClient.UpdateStatus(bStatus.Submitting); backgroundWorker.RunWorkerCompleted += submission_InitialRequest_Complete; backgroundWorker.DoWork += submission_InitialRequest; backgroundWorker.RunWorkerAsync(); }
protected override void OnClosing(CancelEventArgs e) { if (buttonSubmit.Enabled && !hasPostedToForum) { buttonSubmit_Click(this, null); e.Cancel = true; return; } editor.SubmissionComplete(); formClosing = true; if (activeWebRequest != null) { activeWebRequest.Abort(); } if (backgroundWorker != null) { backgroundWorker.CancelAsync(); } base.OnClosing(e); GameBase.MenuActive = false; BanchoClient.UpdateStatus(bStatus.Editing); if (packagePreviousUpload != null) { packagePreviousUpload.Dispose(); } if (packageCurrentUpload != null) { packageCurrentUpload.Dispose(); } GameBase.Form.Focus(); }