private void NeedHideChartSeries(ChartShowHideSeriesParameter parameter)
 {
     MessagingCenter.Send(this, MessagingCenterKeys.NeedShowHideChartSeriesKey, parameter);
 }
 private void OnNeedShowHideChart(ChartSettingsViewModel sender, ChartShowHideSeriesParameter args)
 {
     if (args != null)
     {
         switch (args.SeriesNumber)
         {
             case 0:
                 IsWvisible = args.IsSeriesVisible;
                 break;
             case 1:
                 IsQnVisible = args.IsSeriesVisible;
                 break;
             case 2:
                 IsQjVisible = args.IsSeriesVisible;
                 break;
         }
     }
 }
		private void OnNeedShowHideChart (ChartSettingsViewModel sender, ChartShowHideSeriesParameter args)
		{
			LineSeries series = null;

			if (args != null) {
				switch (args.SeriesNumber) {
				case 0:
					series = _firstSeries;
					break;
				case 1:
					series = _secondSeries;
					break;
				case 2:
					series = _thirdSeries;
					break;
				}

				if (series != null) {
					series.IsVisible = args.IsSeriesVisible;
				}
			}
		}