Ejemplo n.º 1
0
 private void bbCorrigirProjeto_Click(object sender, EventArgs e)
 {
     using (TFOrcProjeto fOrc = new TFOrcProjeto())
     {
         TRegistro_OrcProjeto copia = (TRegistro_OrcProjeto)(bsAtividade.Current as TRegistro_OrcProjeto).Clone();
         fOrc.rOrc = bsAtividade.Current as TRegistro_OrcProjeto;
         if (fOrc.ShowDialog() != DialogResult.OK)
         {
             int position = bsAtividade.Position;
             bsAtividade.RemoveCurrent();
             bsAtividade.Insert(position, copia);
             bsOrcamento.ResetCurrentItem();
         }
     }
 }
Ejemplo n.º 2
0
 private void bbCorrigirProjeto_Click(object sender, EventArgs e)
 {
     using (TFOrcProjeto fOrc = new TFOrcProjeto())
     {
         TRegistro_OrcProjeto copia = (TRegistro_OrcProjeto)(bsAtividade.Current as TRegistro_OrcProjeto).Clone();
         fOrc.rOrc = bsAtividade.Current as TRegistro_OrcProjeto;
         if (fOrc.ShowDialog() != DialogResult.OK)
         {
             int position = bsAtividade.Position;
             bsAtividade.RemoveCurrent();
             bsAtividade.Insert(position, copia);
             bsOrcamento.ResetCurrentItem();
             MessageBox.Show("Atividade corrigida com sucesso.", "Mensagem", MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
     }
 }