private void submitButton_Click(object sender, EventArgs e) { if (this.titleView.SelectedRows.Count == 0) { return; } DataGridViewRow row = this.titleView.SelectedRows[0]; Game game = row.Tag as Game; if (game == null) { return; } AutoResetEvent closeEvent = new AutoResetEvent(false); string username = TestUsername; string password = TestPassword; PleaseWaitDialog pwd = new PleaseWaitDialog("Please wait while the game is submitted...", closeEvent); pwd.Show(this); _service.AddReleaseAsync(username, password, game.GameID, _release, _iconBytes, closeEvent); }
private void addButton_Click(object sender, EventArgs e) { AutoResetEvent closeEvent = new AutoResetEvent(false); string username = TestUsername; string password = TestPassword; PleaseWaitDialog pwd = new PleaseWaitDialog("Please wait while the game is added...", closeEvent); pwd.Show(this); _service.AddGameAsync(username, password, _release, _iconBytes, closeEvent); }
private void submitButton_Click( object sender, EventArgs e ) { if( this.titleView.SelectedRows.Count == 0 ) return; DataGridViewRow row = this.titleView.SelectedRows[ 0 ]; Game game = row.Tag as Game; if( game == null ) return; AutoResetEvent closeEvent = new AutoResetEvent( false ); string username = TestUsername; string password = TestPassword; PleaseWaitDialog pwd = new PleaseWaitDialog( "Please wait while the game is submitted...", closeEvent ); pwd.Show( this ); _service.AddReleaseAsync( username, password, game.GameID, _release, _iconBytes, closeEvent ); }
private void addButton_Click( object sender, EventArgs e ) { AutoResetEvent closeEvent = new AutoResetEvent( false ); string username = TestUsername; string password = TestPassword; PleaseWaitDialog pwd = new PleaseWaitDialog( "Please wait while the game is added...", closeEvent ); pwd.Show( this ); _service.AddGameAsync( username, password, _release, _iconBytes, closeEvent ); }