Added DarkForm

This commit is contained in:
Robin 2015-09-18 09:34:02 +01:00
parent 62c6fce171
commit b45f0d1d82
3 changed files with 22 additions and 2 deletions

View File

@ -43,6 +43,9 @@
<Compile Include="Controls\DarkButton.cs"> <Compile Include="Controls\DarkButton.cs">
<SubType>Component</SubType> <SubType>Component</SubType>
</Compile> </Compile>
<Compile Include="Forms\DarkForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

16
DarkUI/Forms/DarkForm.cs Normal file
View File

@ -0,0 +1,16 @@
using System.Windows.Forms;
namespace DarkUI
{
public class DarkForm : Form
{
#region Constructor Region
public DarkForm()
{
BackColor = Colors.GreyBackground;
}
#endregion
}
}

View File

@ -1,8 +1,9 @@
using System.Windows.Forms; using DarkUI;
using System.Windows.Forms;
namespace Example namespace Example
{ {
public partial class MainForm : Form public partial class MainForm : DarkForm
{ {
public MainForm() public MainForm()
{ {