public WellView(Well wellObject) { InitializeComponent(); DataContext = new WellViewModel(Token, wellObject); }
private static void AddWellObject(Well well) { var project = HelperMethods.Instance.GetProjectByID(well.RefProject); if (!project.Wells.Any(u => u.ID == well.ID)) project.Wells.Add(well); foreach (var datasetObj in well.Datasets) DatasetManager.Instance.AddDatasetObject(datasetObj); }