コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
ファイル: SubmitGame.cs プロジェクト: BradFuller/pspplayer
        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 );
        }
コード例 #4
0
ファイル: SubmitGame.cs プロジェクト: BradFuller/pspplayer
        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 );
        }