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(); }
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(); }