Exemple #1
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);
        }
        void ReleaseDesignerOutlets()
        {
            if (LoadStatLabel != null)
            {
                LoadStatLabel.Dispose();
                LoadStatLabel = null;
            }

            if (ChooseLabel != null)
            {
                ChooseLabel.Dispose();
                ChooseLabel = null;
            }

            if (CompareDiagramSelect != null)
            {
                CompareDiagramSelect.Dispose();
                CompareDiagramSelect = null;
            }

            if (CompareIntervalTree != null)
            {
                CompareIntervalTree.Dispose();
                CompareIntervalTree = null;
            }

            if (CompareSort != null)
            {
                CompareSort.Dispose();
                CompareSort = null;
            }

            if (CompareSplitView != null)
            {
                CompareSplitView.Dispose();
                CompareSplitView = null;
            }

            if (GPUPlotView != null)
            {
                GPUPlotView.Dispose();
                GPUPlotView = null;
            }

            if (GPUScrollView != null)
            {
                GPUScrollView.Dispose();
                GPUScrollView = null;
            }

            if (GPUStackView != null)
            {
                GPUStackView.Dispose();
                GPUStackView = null;
            }

            if (InterText != null)
            {
                InterText.Dispose();
                InterText = null;
            }

            if (InterTreePlotView != null)
            {
                InterTreePlotView.Dispose();
                InterTreePlotView = null;
            }

            if (InterTreeSegmentController != null)
            {
                InterTreeSegmentController.Dispose();
                InterTreeSegmentController = null;
            }

            if (InterTreeSplitView != null)
            {
                InterTreeSplitView.Dispose();
                InterTreeSplitView = null;
            }

            if (IntervalCompareButton != null)
            {
                IntervalCompareButton.Dispose();
                IntervalCompareButton = null;
            }

            if (InterView != null)
            {
                InterView.Dispose();
                InterView = null;
            }

            if (PlotSplitView != null)
            {
                PlotSplitView.Dispose();
                PlotSplitView = null;
            }

            if (plotView != null)
            {
                plotView.Dispose();
                plotView = null;
            }

            if (StatPath != null)
            {
                StatPath.Dispose();
                StatPath = null;
            }

            if (StatTableView != null)
            {
                StatTableView.Dispose();
                StatTableView = null;
            }

            if (TableHeader != null)
            {
                TableHeader.Dispose();
                TableHeader = null;
            }

            if (TabView != null)
            {
                TabView.Dispose();
                TabView = null;
            }
        }