예제 #1
0
 public SettingsPage(Configuration configuration)
 {
     Configuration = configuration;
     DataContext = new SettingsModel(configuration);
     InitializeComponent();
     Loaded += SettingsPage_Loaded;
 }
예제 #2
0
파일: XTMFRun.cs 프로젝트: dianatle/XTMF
 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);
 }
예제 #3
0
파일: XTMFRun.cs 프로젝트: dianatle/XTMF
 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();
 }
예제 #4
0
 public SettingsModel(Configuration config)
 {
     Configuration = config;
     _ProjectDirectory = config.ProjectDirectory;
     _ModelSystemDirectory = config.ModelSystemDirectory;
     _HostPort = config.HostPort;
     Configuration.PropertyChanged += Configuration_PropertyChanged;
 }