public LoadWindow(List <Models.Roi> rois, List <Models.PlanLabel> planLabels, string defaultDirectoryPath) { InitializeComponent(); var loadObjectiveFunctionsViewModel = new ViewModels.LoadObjectiveFunctionsViewModel(rois, planLabels, defaultDirectoryPath); DataContext = loadObjectiveFunctionsViewModel; }
public LoadWindow() { InitializeComponent(); var loadObjectiveFunctionsViewModel = new ViewModels.LoadObjectiveFunctionsViewModel(); loadObjectiveFunctionsViewModel.DefaultDirectoryPath = @"C:\Users\s2ato\Desktop\RayStationScripts\OptimizationFunctions"; DataContext = loadObjectiveFunctionsViewModel; }