This commit is contained in:
kudzu_cp 2010-07-26 01:52:42 +00:00
parent 3eb95f4774
commit eec600d930
2 changed files with 16 additions and 12 deletions

View file

@ -41,8 +41,8 @@ namespace Cosmos.VS.Package {
mProps.Target = value;
IsDirty = true;
BuildPage.CurrentBuildTarget = value;
BuildPage.OnBuildTargetChanged(this, EventArgs.Empty);
CurrentBuildTarget = value;
OnBuildTargetChanged(this, EventArgs.Empty);
}
};
@ -73,14 +73,21 @@ namespace Cosmos.VS.Package {
base.FillProperties();
mProps.Reset();
mProps.SetProperty("OutputPath", GetConfigProperty("OutputPath"));
mProps.SetProperty("BuildTarget", GetConfigProperty("BuildTarget"));
mProps.SetProperty("Framework", GetConfigProperty("Framework"));
mProps.SetProperty("UseInternalAssembler", GetConfigProperty("UseInternalAssembler"));
textOutputPath.Text = mProps.OutputPath;
mProps.SetProperty("BuildTarget", GetConfigProperty("BuildTarget"));
comboTarget.SelectedItem = EnumValue.Find(comboTarget.Items, mProps.Target);
// We need to manually trigger it once, because the indexchanged event compares
// it against the source, and they will of course be the same.
CurrentBuildTarget = (TargetHost)((EnumValue)comboTarget.SelectedItem).Value;
OnBuildTargetChanged(this, EventArgs.Empty);
mProps.SetProperty("Framework", GetConfigProperty("Framework"));
comboFramework.SelectedItem = EnumValue.Find(comboFramework.Items, mProps.Framework);
mProps.SetProperty("UseInternalAssembler", GetConfigProperty("UseInternalAssembler"));
checkUseInternalAssembler.Checked = mProps.UseInternalAssembler;
}

View file

@ -9,11 +9,9 @@ using System.Windows.Forms;
using System.Runtime.InteropServices;
using Cosmos.Build.Common;
namespace Cosmos.VS.Package
{
namespace Cosmos.VS.Package {
[Guid(Guids.VMPage)]
public partial class VMPage : ConfigurationBase
{
public partial class VMPage : ConfigurationBase {
private SubPropertyPageBase pageSubPage;
public VMPage() {
@ -21,8 +19,7 @@ namespace Cosmos.VS.Package
BuildPage.BuildTargetChanged += new EventHandler(BuildOptionsPropertyPage_BuildTargetChanged);
}
protected override void Dispose(bool disposing)
{
protected override void Dispose(bool disposing) {
if (disposing && (components != null))
{
components.Dispose();