示例#1
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(textBox2.Text))
            {
                Session.GetClientes().UsePIMCoin = true;

                BlockPIM block = new BlockPIM(Session.GetClientes().IdUsuario, textBox2.Text);
                blockDB.newKey(block.IdCliente, block.Key);
                clienteDB.updateUsePIMCoin(block.IdCliente);

                PagoConfirmForm payment = new PagoConfirmForm();
                this.Hide();
                payment.Show();
            }
            else
            {
                MessageBox.Show("Adicione sua chave PIMcoin publica");
            }
        }