Esempio n. 1
0
        public int OpenCalibrationData(int projectId)
        {
            Console.WriteLine("View Calibration Data");

            if (reportForm == null)
            {
                reportForm = new ReportForm(Path, RegPath);
            }


            reportForm.PrintType = ReportForm.ReportType.RT_Calibration;
            reportForm.ProjectId = projectId;
            reportForm.SetMeasId(-1);
            reportForm.ShowDialog();


            return(1);
        }
Esempio n. 2
0
        public int OpenReport(int projectId, int measId = -1)
        {
            Console.WriteLine("Open report: " + " " + measId.ToString());


            //string path = Encoding.Default.GetString(s);

            if (reportForm == null)
            {
                reportForm = new ReportForm(Path, RegPath);
            }
            reportForm.PrintType = ReportForm.ReportType.RT_Measurement;
            reportForm.ProjectId = projectId;
            reportForm.SetMeasId(measId);
            DialogResult res = reportForm.ShowDialog();


            return((res == DialogResult.OK) ? 1 : 0);
        }