public LinePropertiesView(SubDataset subDataset) { InitializeComponent(); _dataContext = new LinePropertiesViewModel(subDataset, Token); DataContext = _dataContext; AddKeyBindings<SubDataset>(); }
public void AddAnnotationByAnnotationAndSubDatasetObject(AnnotationInfo annotation, SubDataset subDataset, CurveToShow curveToShow, string uniqueAnnotationName) { if (string.IsNullOrWhiteSpace(uniqueAnnotationName)) throw new Exception("Annotation does not have unique name"); var lineAnnotation = HelperMethods.Instance.GetLineAnnotationByAnnotationInfoAndSubDataset(annotation, subDataset, curveToShow); lineAnnotation.Id = uniqueAnnotationName; LineAnnotationExtendedBinding(lineAnnotation); AddAnnotation(lineAnnotation); }
private static void AddSubDatasetAnnotationsToSelectedChart(SubDataset subDataset, Dataset dataset) { foreach (var track in IoC.Kernel.Get<IGlobalDataModel>().MainViewModel.SelectedChart.Tracks) { var curveToShow = track.Curves.SingleOrDefault(u => u.RefDataset == dataset.ID); if (curveToShow != null) { CurveManager.Instance.AddExistingSubDatasetToTrack(track, dataset, curveToShow); } } }
private static void DeleteAnnotationsFromSubDatasetObject(SubDataset subDataset) { TrackManager.Instance.RemoveAllAnnotationsBySubDataset(subDataset); }
public SubDatasetView(SubDataset subDataset) { InitializeComponent(); DataContext = new SubDatasetViewModel(Token, subDataset); AddKeyBindings<SubDataset>(); }