Beispiel #1
0
        private void buttonRepaintGraph_Click(object sender, EventArgs e)
        {
            this.graphPainter.Clear();
            phaseHandler = new PhaseHandler(graphPainter);

            graphPainter.init_X_Limit();
            // graphPainter.SetRangeX(Projection.X_limit_Min, Projection.X_limit_Max);
            RefreshGraph();
        }
Beispiel #2
0
        private void buttonOpenFile_Click(object sender, EventArgs e)
        {
            openFileDialog1.Filter = "DAC|dac_value*.txt";
            openFileDialog1.Title  = "Select a DAC File";
            DialogResult result = openFileDialog1.ShowDialog();

            // DialogResult result = folderBrowserDialog1.ShowDialog();
            if (result == DialogResult.OK) // Test result.
            {
                showGraphSlider(true);
                filePath  = openFileDialog1.FileName;
                this.Text = filePath;
                String folderName;
                int    nind = filePath.LastIndexOf("\\");
                folderName = filePath.Substring(0, nind);



                phaseHandler = new PhaseHandler(graphPainter);


                // graphPainter.init_X_Limit();
                // graphPainter.SetRangeY(-5, 20);

                Phase_graph.SetY_Limit(-200, 200);
                DAC_graph.SetY_Limit(100000, 150000);
                Temper_graph.SetY_Limit(0, 40);
                Phase_avg_graph.SetY_Limit(-200, 200);
                Phase_firstDeriv_graph.SetY_Limit(-200, 200);
                Phase_secDeriv_graph.SetY_Limit(-200, 200);

                phaseHandler.parseFiles(filePath);

                graphPainter.init_X_Limit();
                //graphPainter.SetRangeX(Projection.X_limit_Min, Projection.X_limit_Max);
                RefreshGraph();
            }
        }