Ejemplo n.º 1
0
        private void TraceSelectionButton_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.Title            = "Select trace file";
            ofd.Filter           = "Trace files (*.trc)|*.trc";
            ofd.InitialDirectory = DRAMSimPath + "/traces";
            ofd.Multiselect      = false;
            if (ofd.ShowDialog() == DialogResult.OK)
            {
                string[] temps = ofd.FileName.Split('/');
                traceNameDisplay.Text = temps[temps.Length - 1];

                gBandwidth.HighlightGraph(null);
                gLatency.HighlightGraph(null);
                gPower.HighlightGraph(null);
                gBandwidth.Clear();
                gLatency.Clear();
                gPower.Clear();
                gHistogram.Clear();
                visFileList.Clear();
                FillPreviousResults(null);
            }
        }