public SettingsPage(Configuration configuration) { Configuration = configuration; DataContext = new SettingsModel(configuration); InitializeComponent(); Loaded += SettingsPage_Loaded; }
public XTMFRun(Project project, ModelSystemStructureModel root, Configuration configuration, string runName) { // we don't make a clone for this type of run Project = project; ModelSystemStructureModelRoot = root; var index = project.ModelSystemStructure.IndexOf(root.RealModelSystemStructure); if(index >= 0) Configuration = new XTMF.RunProxy.ConfigurationProxy(configuration, Project); RunName = runName; RunDirectory = Path.Combine(Configuration.ProjectDirectory, Project.Name, RunName); }
public XTMFRun(Project project, int modelSystemIndex, ModelSystemModel root, Configuration config, string runName) { Project = project; ModelSystemStructureModelRoot = root.Root; Configuration = new XTMF.RunProxy.ConfigurationProxy(config, Project); RunName = runName; RunDirectory = Path.Combine(Configuration.ProjectDirectory, Project.Name, RunName); ModelSystemIndex = modelSystemIndex; Project.ModelSystemStructure[ModelSystemIndex] = root.ClonedModelSystemRoot; Project.LinkedParameters[ModelSystemIndex] = root.LinkedParameters.GetRealLinkedParameters(); }
public SettingsModel(Configuration config) { Configuration = config; _ProjectDirectory = config.ProjectDirectory; _ModelSystemDirectory = config.ModelSystemDirectory; _HostPort = config.HostPort; Configuration.PropertyChanged += Configuration_PropertyChanged; }