public MeasurementBaseNetControl() { this.CallInitializeComponent(); this.LinesGroup = new LineGraph[this.LinesGroupLength]; this.PointsGroup = new List <Point> [this.LinesGroup.Length]; for (int i = 0; i < this.LinesGroup.Length; i++) { var lg = this.CreateLineGraphInstance(); this.LinesGrid.Children.Add(this.LinesGroup[i] = lg); this.LinePointsDict.Add(lg, this.PointsGroup[i] = new List <Point>()); } this.BaseZeroYGroup = new double[this.LinesGroup.Length]; this.LastYGroup = new double[this.LinesGroup.Length]; this.OnReceivedCallback = new OnReceiveDataDelegate(this.OnReceivedInternal); //this.SetRemoteCheckBox.IsChecked = true; }