private void label6_DoubleClick(object sender, EventArgs e)
        {
            MinComprobante comprobante = new MinComprobante();

            if (MessageBox.Show("Abrir el comprobante?", "Confirmar", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                comprobante.Nombre            = label1.Text;
                comprobante.NumeroComprobante = this.comprobante.Diferencia_Comprobante_Numero;
                comprobante.retriveComprobante();
                this.Hide();
                //string name, string price, string teacher, string amount, string clasesTotal)
                Comprobante_Para_Reimpresion frm3 = new Comprobante_Para_Reimpresion(comprobante);
                frm3.ShowDialog();
                this.Show();
            }
        }
Example #2
0
 private void objectListView1_CellToolTipShowing(object sender, BrightIdeasSoftware.ToolTipShowingEventArgs e)
 {
     try
     {
         string         exit        = "Clases con los Profesores: ";
         MinComprobante comprobante = new MinComprobante();
         comprobante = ((MinComprobante)objectListView1.SelectedObject);
         comprobante.retriveComprobante();
         foreach (var compr in comprobante.comprobantes)
         {
             exit += compr.Profesor + ", ";
         }
         int aux = exit.Count();
         exit   = exit.Substring(0, aux - 2);
         e.Text = exit;
     }
     catch
     {
     }
 }
Example #3
0
        private void objectListView1_DoubleClick(object sender, EventArgs e)
        {
            MinComprobante comprobante = new MinComprobante();

            try
            {
                if (MessageBox.Show("Desea Abrir el comprobante?", "Confirmar", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                {
                    comprobante = ((MinComprobante)objectListView1.SelectedObject);
                    comprobante.retriveComprobante();
                    this.Hide();
                    //string name, string price, string teacher, string amount, string clasesTotal)
                    Comprobante_Para_Reimpresion frm3 = new Comprobante_Para_Reimpresion(comprobante);
                    frm3.ShowDialog();
                    this.Show();
                }
            }
            catch
            {
            }
        }