private void btn_FacturacionTotal_Click(object sender, EventArgs e) { this.Hide(); FrmMostrar mostrar = new FrmMostrar(this.centralita.ToString(), this.centralita); mostrar.ShowDialog(); }
private void btn_FacturacionProvincial_Click(object sender, EventArgs e) { StringBuilder sb = new StringBuilder(); sb.AppendLine("FACTURACION POR LLAMADAS PROVINCIALES"); sb.AppendLine("*************************************"); foreach (Llamada l in this.centralita.Llmadas) { if (l is Provincial) { sb.AppendLine(l.ToString()); sb.AppendLine("--------------------------------"); } } FrmMostrar mostrar = new FrmMostrar(sb.ToString(), centralita); this.Hide(); mostrar.ShowDialog(); }