private void DetailedButton_Click(object sender, EventArgs e) { Utility.ButtonRed(DetailedButton); DialogResult odr = ReportSaveFileDialog.ShowDialog(); if (odr == DialogResult.OK) { Report.CreateAnalysisReport(ReportSaveFileDialog.FileName); } Utility.ButtonGreen(DetailedButton); }
private void SummaryButton_Click(object sender, EventArgs e) { Utility.ButtonRed(SummaryButton); DialogResult odr = ReportSaveFileDialog.ShowDialog(); if (odr == DialogResult.OK) { Report.CreateSummaryReport(ReportSaveFileDialog.FileName); } Utility.ButtonGreen(SummaryButton); return; }
private void AAVSOButton_Click(object sender, EventArgs e) { Utility.ButtonRed(AAVSOButton); //Spoof the observers code for now const string ocode = "na"; DialogResult odr = ReportSaveFileDialog.ShowDialog(); if (odr == DialogResult.OK) { Report.CreateAAVSOReport(ReportSaveFileDialog.FileName, ocode); } Utility.ButtonGreen(AAVSOButton); }
private void SaveReport() { try { ReportSaveFileDialog.InitialDirectory = PathUtils.BaseDirectory; ReportSaveFileDialog.Filter = "Текстовые файлы (*.txt)|*.txt;|MS Excel CSV-файл (*.csv)|*.csv;|Все файлы|*.*"; ReportSaveFileDialog.FileName = mosaicFileName; if (ReportSaveFileDialog.ShowDialog() == DialogResult.OK) { SaveMosaicReport(ReportSaveFileDialog.FileName); } } catch (Exception ex) { Log.Exception(ex); } }