Example #1
0
 private void bb_capturar_Click(object sender, EventArgs e)
 {
     using (TFVisualizarCaptura fClifor = new TFVisualizarCaptura())
     {
         fClifor.Img = (bsClifor.Current as TRegistro_CadClifor).Img;
         if (fClifor.ShowDialog() == DialogResult.OK)
         {
             if (fClifor.Img != null)
             {
                 try
                 {
                     (bsClifor.Current as TRegistro_CadClifor).Img = fClifor.Img;
                 }
                 catch (Exception ex)
                 {
                     MessageBox.Show(ex.Message.Trim(), "Erro", MessageBoxButtons.OK, MessageBoxIcon.Error);
                 }
             }
         }
     }
 }
Example #2
0
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     using (TFVisualizarCaptura fClifor = new TFVisualizarCaptura())
     {
         fClifor.Img = (bsPessoas.Current as CamadaDados.Financeiro.Cadastros.TRegistro_PessoasAutorizadas).Img;
         if (fClifor.ShowDialog() == DialogResult.OK)
         {
             if (fClifor.Img != null)
             {
                 try
                 {
                     (bsPessoas.Current as CamadaDados.Financeiro.Cadastros.TRegistro_PessoasAutorizadas).Img = fClifor.Img;
                 }
                 catch (Exception ex)
                 {
                     MessageBox.Show(ex.Message.Trim(), "Erro", MessageBoxButtons.OK, MessageBoxIcon.Error);
                 }
             }
         }
     }
 }