mirror of
https://github.com/colhountech/DarkUI.Net5.git
synced 2025-07-02 07:09:27 +03:00
Added DarkForm
This commit is contained in:
parent
62c6fce171
commit
b45f0d1d82
@ -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
16
DarkUI/Forms/DarkForm.cs
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace DarkUI
|
||||||
|
{
|
||||||
|
public class DarkForm : Form
|
||||||
|
{
|
||||||
|
#region Constructor Region
|
||||||
|
|
||||||
|
public DarkForm()
|
||||||
|
{
|
||||||
|
BackColor = Colors.GreyBackground;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
@ -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()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user