Exemple #1
0
    private void OnRedeemGiftCertificate(object o, EventArgs args)
    {
        RedeemDialog dlg =
            new RedeemDialog(MainWindow, "Gift Certificate", "CertID");

        switch ((ResponseType)dlg.Run())
        {
        case ResponseType.Ok:
            ThreadPool.QueueUserWorkItem(new WaitCallback(GiftCertThread),
                                         dlg.Text);
            break;

        default:
            break;
        }
        dlg.Destroy();
    }
Exemple #2
0
    private void OnRedeemPepsiCap(object o, EventArgs args)
    {
        RedeemDialog dlg =
            new RedeemDialog(MainWindow, "Pepsi Cap", "Code");

        switch ((ResponseType)dlg.Run())
        {
        case ResponseType.Ok:
            ThreadPool.QueueUserWorkItem(new WaitCallback(PepsiThread),
                                         dlg.Text);
            break;

        default:
            break;
        }
        dlg.Destroy();
    }
Exemple #3
0
    private void OnRedeemPepsiCap( object o, EventArgs args )
    {
        RedeemDialog dlg =
            new RedeemDialog( MainWindow, "Pepsi Cap", "Code" );
        switch( (ResponseType)dlg.Run() )
        {
            case ResponseType.Ok:
                ThreadPool.QueueUserWorkItem( new WaitCallback(PepsiThread),
                                              dlg.Text );
                break;

            default:
                break;
        }
        dlg.Destroy();
    }
Exemple #4
0
    private void OnRedeemGiftCertificate( object o, EventArgs args )
    {
        RedeemDialog dlg =
            new RedeemDialog( MainWindow, "Gift Certificate", "CertID" );
        switch( (ResponseType)dlg.Run() )
        {
            case ResponseType.Ok:
                ThreadPool.QueueUserWorkItem( new WaitCallback(GiftCertThread),
                                              dlg.Text );
                break;

            default:
                break;
        }
        dlg.Destroy();
    }