Exemple #1
0
        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);
        }
Exemple #2
0
        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;
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        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);
            }
        }