Skip to content

Commit

Permalink
add background,it is beautiful now!
Browse files Browse the repository at this point in the history
  • Loading branch information
ysjiang4869 committed Oct 9, 2016
1 parent 6ab0a4d commit 1aaf2b3
Show file tree
Hide file tree
Showing 9 changed files with 542 additions and 172 deletions.
Binary file modified TimedShutdownHelper.exe
Binary file not shown.
277 changes: 145 additions & 132 deletions TimedShutdownHelper/Form1.Designer.cs

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions TimedShutdownHelper/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TimedShutdownHelper.Properties;

namespace TimedShutdownHelper
{
Expand Down Expand Up @@ -42,7 +43,13 @@ public void load()
label1.Text = date;
string time = String.Format("{0}时{1}分{2}秒", now.Hour, now.Minute, now.Second);
label2.Text = time;

//设置某些组件的背景色
richTextBox1.BackColor = Color.FromArgb(234, 247, 255);
richTextBox2.BackColor = Color.FromArgb(234, 247, 255);
richTextBox3.BackColor = Color.FromArgb(234, 247, 255);
richTextBox4.BackColor = Color.FromArgb(234, 247, 255);
trackBar1.BackColor = Color.FromArgb(234, 247, 255);
trackBar2.BackColor = Color.FromArgb(234, 247, 255);
}
private void readtime()
{
Expand Down Expand Up @@ -522,10 +529,7 @@ private void tabPage2_Enter(object sender, EventArgs e)
{
countDownTimeMinute();
}






}
}
341 changes: 341 additions & 0 deletions TimedShutdownHelper/Form1.resx

Large diffs are not rendered by default.

62 changes: 32 additions & 30 deletions TimedShutdownHelper/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 12 additions & 5 deletions TimedShutdownHelper/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
Expand All @@ -60,6 +60,7 @@
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
Expand All @@ -68,9 +69,10 @@
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
Expand All @@ -85,9 +87,10 @@
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
Expand All @@ -109,9 +112,13 @@
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="TabpageBackground" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\back.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TimedShutdownHelper/Resources/back.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions TimedShutdownHelper/TimedShutdownHelper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
Expand All @@ -86,6 +87,8 @@
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\8494915_175638401162_222.jpg" />
<None Include="Resources\back.jpg" />
<Content Include="system-devices-panel-alert.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down

0 comments on commit 1aaf2b3

Please sign in to comment.