mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
51 lines
1.2 KiB
C#
51 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Microsoft.VisualStudio.Project;
|
|
using Microsoft.VisualStudio;
|
|
using System.ComponentModel;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Cosmos.VS.Package {
|
|
public enum TestTarget { QEMU, VMWare };
|
|
|
|
[Guid("FA935644-BA67-465d-BB88-12997EFA4C21")]
|
|
public class PropPageTest : SettingsPage {
|
|
public PropPageTest() {
|
|
Name = "Test";
|
|
}
|
|
|
|
protected string mTest;
|
|
[SRCategoryAttribute("Category")]
|
|
[DisplayName("Property Name")]
|
|
[SRDescriptionAttribute("Description")]
|
|
public string Test {
|
|
get { return mTest; }
|
|
set {
|
|
mTest = value;
|
|
this.IsDirty = true;
|
|
}
|
|
}
|
|
|
|
protected TestTarget mTarget;
|
|
[SRCategoryAttribute("Category")]
|
|
[DisplayName("Target")]
|
|
[SRDescriptionAttribute("Description")]
|
|
public TestTarget Target {
|
|
get { return mTarget; }
|
|
set {
|
|
mTarget = value;
|
|
this.IsDirty = true;
|
|
}
|
|
}
|
|
|
|
protected override void BindProperties() {
|
|
}
|
|
|
|
protected override int ApplyChanges() {
|
|
SetConfigProperty("Test", "Hello");
|
|
return VSConstants.S_OK;
|
|
}
|
|
}
|
|
}
|