mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-31 13:21:05 +00:00
Tweaked PropertyPage UI to fit in low resolution screens (like for weird people with 768x1024).
50 lines
1.2 KiB
C#
50 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Drawing;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
using Cosmos.Builder.Common;
|
|
|
|
namespace Cosmos.VS.Package
|
|
{
|
|
public partial class ConfigurationBase : CustomPropertyPage
|
|
{
|
|
public ConfigurationBase()
|
|
{
|
|
InitializeComponent();
|
|
|
|
|
|
this.comboArchitecture.Items.AddRange(EnumValue.GetEnumValues(typeof(Architecture)));
|
|
}
|
|
|
|
protected override void FillProperties()
|
|
{
|
|
base.FillProperties();
|
|
|
|
//base.Project
|
|
}
|
|
|
|
protected Microsoft.VisualStudio.Project.ProjectConfig CurrentProjectConfig
|
|
{
|
|
get
|
|
{
|
|
//the first index of the configuration is always the "Active (n)" settings.
|
|
if( this.comboConfiguration.SelectedIndex == 0 )
|
|
{
|
|
|
|
}else{
|
|
foreach( Microsoft.VisualStudio.Project.ProjectConfig projectConfig in base.ProjectConfigs )
|
|
{
|
|
if (String.Equals(projectConfig.ConfigName, this.comboConfiguration.SelectedText, StringComparison.InvariantCulture) == true)
|
|
{ return projectConfig; }
|
|
}
|
|
}
|
|
|
|
throw new Exception("Unable to find selected project configuration.");
|
|
}
|
|
}
|
|
}
|
|
}
|