Beispiel #1
0
        private void btnFacturacionProvincial_Click(object sender, EventArgs e)
        {
            FrmMostrar mostrar = new FrmMostrar(centralita);

            mostrar.Text        = "Facturación Provincial";
            mostrar.RichTextBox = "GANANCIA PROVINCIAL: " + String.Format("{0:C}", decimal.Parse(this.centralita.GananciasPorProvincial.ToString()));
            mostrar.ShowDialog();
        }
Beispiel #2
0
        private void btnFacturacionTotal_Click(object sender, EventArgs e)
        {
            FrmMostrar mostrar = new FrmMostrar(centralita);

            mostrar.Text        = "Facturación Total";
            mostrar.RichTextBox = this.centralita.ToString();

            try
            {
                Texto        texto = new Texto();
                Xml <string> xml   = new Xml <string>();
                texto.Guardar(this.centralita.RazonSocial + " Facturación Total.txt", this.centralita.ToString());
                xml.Guardar(this.centralita.RazonSocial + " Facturación Total.xml", this.centralita.ToString());
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            mostrar.ShowDialog();
        }