예제 #1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            bool result = ctrEntry.PerformTransfer(Convert.ToDouble(nupValue.Value), Convert.ToInt32(cbBankSender.SelectedValue), Convert.ToInt32(cbDestination.SelectedValue), dtpBaseTime.Value);

            if (result)
            {
                this.DialogResult = MessageBox.Show("Transferência realizada com Sucesso!", "", MessageBoxButtons.OK);
            }
            else
            {
                MessageBox.Show("Limite insuficiente, verique o saldo da conta origem!", "Informativo", MessageBoxButtons.OK);
            }
        }