Пример #1
0
        private void AddSelection(int selectedReplicateIndex, double maxRetentionTime, double minRetentionTime)
        {
            bool selectLines = CurveList.Any(c => c is LineItem);

            if (selectLines)
            {
                GraphObjList.Add(new LineObj(Color.Black, selectedReplicateIndex + 1, 0, selectedReplicateIndex + 1,
                                             maxRetentionTime)
                {
                    IsClippedToChartRect = true,
                    Line = new Line {
                        Width = 2, Color = Color.Black, Style = DashStyle.Dash
                    }
                });
            }
            else
            {
                GraphObjList.Add(new BoxObj(selectedReplicateIndex + .5, maxRetentionTime, 1,
                                            maxRetentionTime - minRetentionTime, Color.Black, Color.Empty)
                {
                    IsClippedToChartRect = true,
                });
            }
        }