mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-21 13:28:41 +00:00
This commit is contained in:
parent
82e7092009
commit
8a4bccee9d
1 changed files with 24 additions and 12 deletions
|
|
@ -95,38 +95,32 @@ namespace Cosmos.VS.Package {
|
|||
}
|
||||
}
|
||||
|
||||
protected void UpdateUI() {
|
||||
var xProfile = (ProfileItem)lboxProfile.SelectedItem;
|
||||
|
||||
protected void UpdatePresetsUI() {
|
||||
chckEnableDebugStub.Checked = false;
|
||||
cmboCosmosPort.Enabled = true;
|
||||
cmboVisusalStudioPort.Enabled = true;
|
||||
|
||||
// Set visibilty and for preset set/reset values.
|
||||
if (mProps.Profile == "ISO") {
|
||||
mProps.Deployment = Deployment.ISO;
|
||||
mProps.Launch = Launch.None;
|
||||
|
||||
} else if (mProps.Profile == "USB") {
|
||||
mShowTabUSB = true;
|
||||
mProps.Deployment = Deployment.USB;
|
||||
mProps.Launch = Launch.PXE;
|
||||
|
||||
} else if (mProps.Profile == "VMware") {
|
||||
mShowTabVMware = true;
|
||||
chckEnableDebugStub.Checked = true;
|
||||
cmboCosmosPort.Enabled = false;
|
||||
cmboVisusalStudioPort.Enabled = false;
|
||||
mProps.Deployment = Deployment.ISO;
|
||||
mProps.Launch = Launch.VMware;
|
||||
|
||||
} else if (mProps.Profile == "PXE") {
|
||||
mProps.Deployment = Deployment.PXE;
|
||||
mProps.Launch = Launch.None;
|
||||
|
||||
} else {
|
||||
lablDeployText.Text = "Oops. What the frak did you click?";
|
||||
}
|
||||
}
|
||||
|
||||
protected void UpdateUI() {
|
||||
UpdatePresetsUI();
|
||||
var xProfile = (ProfileItem)lboxProfile.SelectedItem;
|
||||
|
||||
lablCurrentProfile.Text = xProfile.ToString();
|
||||
lablDeployText.Text = xProfile.Description;
|
||||
|
|
@ -351,6 +345,24 @@ namespace Cosmos.VS.Package {
|
|||
foreach (var xName in BuildProperties.PropNames) {
|
||||
mProps.SetProperty(xName, GetConfigProperty(aName + "_" + xName));
|
||||
}
|
||||
|
||||
// Reforce fixed settings for presets on each load.
|
||||
if (mProps.Profile == "ISO") {
|
||||
mProps.Deployment = Deployment.ISO;
|
||||
mProps.Launch = Launch.None;
|
||||
|
||||
} else if (mProps.Profile == "USB") {
|
||||
mProps.Deployment = Deployment.USB;
|
||||
mProps.Launch = Launch.PXE;
|
||||
|
||||
} else if (mProps.Profile == "VMware") {
|
||||
mProps.Deployment = Deployment.ISO;
|
||||
mProps.Launch = Launch.VMware;
|
||||
|
||||
} else if (mProps.Profile == "PXE") {
|
||||
mProps.Deployment = Deployment.PXE;
|
||||
mProps.Launch = Launch.None;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void FillProperties() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue