mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-13 03:31:22 +00:00
This commit is contained in:
parent
3eb95f4774
commit
eec600d930
2 changed files with 16 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue