示例#1
0
 private void m_lvPEs_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     try
     {
         System.Windows.Forms.ListViewItem lvItemSelecionado = m_lvPEs.GetItemAt(e.X, e.Y);
         if ((lvItemSelecionado != null) && (e.Button == System.Windows.Forms.MouseButtons.Right))
         {
             this.Cursor = System.Windows.Forms.Cursors.WaitCursor;
             bool bConcluido     = false;
             int  nQdeConcluidos = 0;
             foreach (System.Windows.Forms.ListViewItem lvItemPEs in m_lvPEs.SelectedItems)
             {
                 if (lvItemPEs.ImageIndex == 0)
                 {
                     nQdeConcluidos++;
                 }
             }
             if (nQdeConcluidos > (int)(m_lvPEs.SelectedItems.Count / 2))
             {
                 bConcluido = true;
             }
             m_mnitPEConcluido.Checked = bConcluido;
             m_cnmnPEConcluido.Show(m_lvPEs, new System.Drawing.Point(e.X, e.Y));
             this.Cursor = System.Windows.Forms.Cursors.Default;
         }
     }
     catch (Exception err)
     {
         Object erro = err;
         m_cls_ter_tratadorErro.trataErro(ref erro);
     }
 }
示例#2
0
 private void m_lvAgentes_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     try
     {
         if (m_lvAgentes.GetItemAt(e.X, e.Y) != null)
         {
             if (m_bAtiva)
             {
                 m_bAtiva = false;
                 OnCallSalvaDadosInterface();
                 m_bAtiva = true;
             }
         }
         else
         {
             if (m_bAtiva)
             {
                 m_bAtiva = false;
                 m_lvAgentes.SelectedItems.Clear();
                 OnCallSalvaDadosInterface();
                 m_bAtiva = true;
             }
         }
     }
     catch (Exception err)
     {
         Object erro = err;
         m_cls_ter_tratadorErro.trataErro(ref erro);
     }
 }
示例#3
0
 private void m_lvBancos_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     m_ultimoClique = m_enum_ultimoClique.BANCO;
     System.Windows.Forms.ListViewItem lvItemBanco = m_lvBancos.GetItemAt(e.X, e.Y);
     if (lvItemBanco != null)
     {
         OnCallCarregaDadosBancoSelecionado();
         OnCallCarregaDadosInterface();
     }
     else
     {
         int nTotal = m_lvBancos.SelectedItems.Count;
         for (int nCount = 0; nCount < nTotal; nCount++)
         {
             lvItemBanco          = m_lvBancos.SelectedItems[0];
             lvItemBanco.Selected = false;
         }
         OnCallCarregaDadosBancoSelecionado();
         OnCallCarregaDadosInterface();
     }
 }
示例#4
0
 private void m_lvContato_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     try
     {
         if (m_lvContato.GetItemAt(e.X, e.Y) == null)
         {
             m_lvContato.SelectedItems.Clear();
         }
         if (m_bAtiva == true)
         {
             m_bAtiva = false;
             OnCallCarregaDadosBDContatos();
             OnCallCarregaDadosContatoInterface();
             m_bAtiva = true;
         }
     }
     catch (Exception err)
     {
         Object erro = err;
         m_cls_ter_tratadorErro.trataErro(ref erro);
     }
 }
示例#5
0
 private void m_lvAgencias_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     m_ultimoClique = m_enum_ultimoClique.AGENCIA;
     System.Windows.Forms.ListViewItem lvItemAgencia = m_lvAgencias.GetItemAt(e.X, e.Y);
     if (lvItemAgencia != null)
     {
         OnCallCarregaDadosAgenciaSelecionada();
         OnCallCarregaDadosInterfaceConta();
         OnCallCarregaDadosInterfaceInformacoes();
     }
     else
     {
         int nTotal = m_lvAgencias.SelectedItems.Count;
         for (int nCount = 0; nCount < nTotal; nCount++)
         {
             lvItemAgencia          = m_lvAgencias.SelectedItems[0];
             lvItemAgencia.Selected = false;
         }
         OnCallCarregaDadosAgenciaSelecionada();
         OnCallCarregaDadosInterfaceConta();
         OnCallCarregaDadosInterfaceInformacoes();
     }
 }