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(); }
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(); }
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(); }
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(); }