Esempio n. 1
0
        public void InterView_SelectionDidChange(object sender, EventArgs e)
        {
            var item = InterView.ItemAtRow(InterView.SelectedRow) as Interval;

            InterText.Value         = item.Text;
            InterTreePlotView.Model = PlotMaker.ProcLostTimePlot(LoadedStat, this, item.Row, plotStatMaxTime);
            if (SelectedProc >= 0)
            {
                SelectProcessor(SelectedProc, item.Row);
            }
        }
Esempio n. 2
0
        public void SetDataToInterView(Stat stat, int row = 0)
        {
            LoadedStat                = stat;
            LoadStatLabel.Hidden      = false;
            LoadStatLabel.StringValue = stat.GetInfoForStatDir();
            LoadStatLabel.SetFrameSize(LoadStatLabel.FittingSize);
            InitInterTree();
            InterTreePlotView.Model = PlotMaker.ProcLostTimePlot(LoadedStat, this, 0, plotStatMaxTime);
            plotStatMaxTime         = InterTreePlotView.Model.GetAxis("Time").ActualMaximum;
            InterText.Value         = "";
            var intervals = ((IntervalOutlineDataSource)InterView.DataSource).Intervals;

            intervals.Clear();
            intervals.Add(stat.Interval);
            InterView.ReloadData();
            InterView.ExpandItem(InterView.ItemAtRow(0), true);
            InterView.SelectRow(row, false);
        }