mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-26 21:42:11 +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() {
|
protected void UpdatePresetsUI() {
|
||||||
var xProfile = (ProfileItem)lboxProfile.SelectedItem;
|
|
||||||
|
|
||||||
chckEnableDebugStub.Checked = false;
|
chckEnableDebugStub.Checked = false;
|
||||||
cmboCosmosPort.Enabled = true;
|
cmboCosmosPort.Enabled = true;
|
||||||
cmboVisusalStudioPort.Enabled = true;
|
cmboVisusalStudioPort.Enabled = true;
|
||||||
|
|
||||||
// Set visibilty and for preset set/reset values.
|
|
||||||
if (mProps.Profile == "ISO") {
|
if (mProps.Profile == "ISO") {
|
||||||
mProps.Deployment = Deployment.ISO;
|
|
||||||
mProps.Launch = Launch.None;
|
|
||||||
|
|
||||||
} else if (mProps.Profile == "USB") {
|
} else if (mProps.Profile == "USB") {
|
||||||
mShowTabUSB = true;
|
mShowTabUSB = true;
|
||||||
mProps.Deployment = Deployment.USB;
|
|
||||||
mProps.Launch = Launch.PXE;
|
|
||||||
|
|
||||||
} else if (mProps.Profile == "VMware") {
|
} else if (mProps.Profile == "VMware") {
|
||||||
mShowTabVMware = true;
|
mShowTabVMware = true;
|
||||||
chckEnableDebugStub.Checked = true;
|
chckEnableDebugStub.Checked = true;
|
||||||
cmboCosmosPort.Enabled = false;
|
cmboCosmosPort.Enabled = false;
|
||||||
cmboVisusalStudioPort.Enabled = false;
|
cmboVisusalStudioPort.Enabled = false;
|
||||||
mProps.Deployment = Deployment.ISO;
|
|
||||||
mProps.Launch = Launch.VMware;
|
|
||||||
|
|
||||||
} else if (mProps.Profile == "PXE") {
|
} else if (mProps.Profile == "PXE") {
|
||||||
mProps.Deployment = Deployment.PXE;
|
|
||||||
mProps.Launch = Launch.None;
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
lablDeployText.Text = "Oops. What the frak did you click?";
|
lablDeployText.Text = "Oops. What the frak did you click?";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void UpdateUI() {
|
||||||
|
UpdatePresetsUI();
|
||||||
|
var xProfile = (ProfileItem)lboxProfile.SelectedItem;
|
||||||
|
|
||||||
lablCurrentProfile.Text = xProfile.ToString();
|
lablCurrentProfile.Text = xProfile.ToString();
|
||||||
lablDeployText.Text = xProfile.Description;
|
lablDeployText.Text = xProfile.Description;
|
||||||
|
|
@ -351,6 +345,24 @@ namespace Cosmos.VS.Package {
|
||||||
foreach (var xName in BuildProperties.PropNames) {
|
foreach (var xName in BuildProperties.PropNames) {
|
||||||
mProps.SetProperty(xName, GetConfigProperty(aName + "_" + xName));
|
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() {
|
protected override void FillProperties() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue