示例#1
0
 public WellView(Well wellObject)
 {
     InitializeComponent();
     DataContext = new WellViewModel(Token, wellObject);
 }
示例#2
0
        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);
        }