Пример #1
0
        public frmCartoes()
        {
            // Required for Windows Form Designer support
            InitializeComponent();

            // TODO: Add any constructor code after InitializeComponent call
             mCartao = new cartao();

             updateFields();
             HabilitaControlesGravacao(false);
        }
Пример #2
0
        public frmCartoes(int codCartao)
        {
            // Required for Windows Form Designer support
             InitializeComponent();

             // TODO: Add any constructor code after InitializeComponent call
             try
             {
            mCartao = new cartao(codCartao);

            HabilitaControlesGravacao(false);
            updateFields();
             }
             catch (System.Exception e)
             {
            System.Windows.Forms.MessageBox.Show(e.Source + ": " + e.Message);
             }
        }
Пример #3
0
 // Traz busca as informações do cartao solicitado e apresenta os dados na tela!
 private void BuscaCartao(int codCartao)
 {
     if (TemTransacao())
      {
     try
     {
        mCartao = null;
        mCartao = new cartao(codCartao);
        updateFields();
        HabilitaControlesGravacao(false);
     }
     catch (System.Exception oException)
     {
        System.Windows.Forms.MessageBox.Show(oException.Source + ": " + oException.Message);
     }
      }
 }
Пример #4
0
        // Solicita busca dos dados no banco de dados
        private void btnBuscaCartao_Click(object sender, System.EventArgs e)
        {
            try
             {
            mCartao = null;
            mCartao = new cartao();

            HabilitaControlesGravacao(false);
            updateFields();
            txtCodigoCartao.Focus();
             }
             catch (System.Exception oException)
             {
            System.Windows.Forms.MessageBox.Show(oException.Source + ": " + oException.Message);
             }
        }