Skip to content

Commit 29e0aeb

Browse files
committed
Add project files.
1 parent f8405f8 commit 29e0aeb

15 files changed

+739
-0
lines changed

App.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
5+
</startup>
6+
</configuration>

Clock.csproj

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{A60B8EC2-434E-4141-AE96-5327091B8DC5}</ProjectGuid>
8+
<OutputType>WinExe</OutputType>
9+
<RootNamespace>Clock</RootNamespace>
10+
<AssemblyName>Clock</AssemblyName>
11+
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
12+
<FileAlignment>512</FileAlignment>
13+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14+
<Deterministic>true</Deterministic>
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17+
<PlatformTarget>AnyCPU</PlatformTarget>
18+
<DebugSymbols>true</DebugSymbols>
19+
<DebugType>full</DebugType>
20+
<Optimize>false</Optimize>
21+
<OutputPath>bin\Debug\</OutputPath>
22+
<DefineConstants>DEBUG;TRACE</DefineConstants>
23+
<ErrorReport>prompt</ErrorReport>
24+
<WarningLevel>4</WarningLevel>
25+
</PropertyGroup>
26+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27+
<PlatformTarget>AnyCPU</PlatformTarget>
28+
<DebugType>pdbonly</DebugType>
29+
<Optimize>true</Optimize>
30+
<OutputPath>bin\Release\</OutputPath>
31+
<DefineConstants>TRACE</DefineConstants>
32+
<ErrorReport>prompt</ErrorReport>
33+
<WarningLevel>4</WarningLevel>
34+
</PropertyGroup>
35+
<ItemGroup>
36+
<Reference Include="System" />
37+
<Reference Include="System.Core" />
38+
<Reference Include="System.Xml.Linq" />
39+
<Reference Include="System.Data.DataSetExtensions" />
40+
<Reference Include="Microsoft.CSharp" />
41+
<Reference Include="System.Data" />
42+
<Reference Include="System.Deployment" />
43+
<Reference Include="System.Drawing" />
44+
<Reference Include="System.Net.Http" />
45+
<Reference Include="System.Windows.Forms" />
46+
<Reference Include="System.Xml" />
47+
</ItemGroup>
48+
<ItemGroup>
49+
<Compile Include="Form1.cs">
50+
<SubType>Form</SubType>
51+
</Compile>
52+
<Compile Include="Form1.Designer.cs">
53+
<DependentUpon>Form1.cs</DependentUpon>
54+
</Compile>
55+
<Compile Include="Program.cs" />
56+
<Compile Include="Properties\AssemblyInfo.cs" />
57+
<EmbeddedResource Include="Form1.resx">
58+
<DependentUpon>Form1.cs</DependentUpon>
59+
</EmbeddedResource>
60+
<EmbeddedResource Include="Properties\Resources.resx">
61+
<Generator>ResXFileCodeGenerator</Generator>
62+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
63+
<SubType>Designer</SubType>
64+
</EmbeddedResource>
65+
<Compile Include="Properties\Resources.Designer.cs">
66+
<AutoGen>True</AutoGen>
67+
<DependentUpon>Resources.resx</DependentUpon>
68+
<DesignTime>True</DesignTime>
69+
</Compile>
70+
<None Include="Properties\Settings.settings">
71+
<Generator>SettingsSingleFileGenerator</Generator>
72+
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
73+
</None>
74+
<Compile Include="Properties\Settings.Designer.cs">
75+
<AutoGen>True</AutoGen>
76+
<DependentUpon>Settings.settings</DependentUpon>
77+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
78+
</Compile>
79+
</ItemGroup>
80+
<ItemGroup>
81+
<None Include="App.config" />
82+
</ItemGroup>
83+
<ItemGroup>
84+
<None Include="Resources\icons8_love_32px.png" />
85+
</ItemGroup>
86+
<ItemGroup>
87+
<None Include="Resources\icons8_love_64px.png" />
88+
</ItemGroup>
89+
<ItemGroup>
90+
<None Include="Resources\icons8_love_40px.png" />
91+
</ItemGroup>
92+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
93+
</Project>

Clock.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30011.22
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Clock", "Clock.csproj", "{A60B8EC2-434E-4141-AE96-5327091B8DC5}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{A60B8EC2-434E-4141-AE96-5327091B8DC5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{A60B8EC2-434E-4141-AE96-5327091B8DC5}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{A60B8EC2-434E-4141-AE96-5327091B8DC5}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{A60B8EC2-434E-4141-AE96-5327091B8DC5}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {AE9ACF6E-AEF6-42AE-835F-20528B9F380F}
24+
EndGlobalSection
25+
EndGlobal

Form1.Designer.cs

Lines changed: 152 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Form1.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using System;
2+
using System.Windows.Forms;
3+
4+
namespace Clock
5+
{
6+
public partial class FormHome : Form
7+
{
8+
public FormHome()
9+
{
10+
InitializeComponent();
11+
}
12+
private void FormHome_Load(object sender, EventArgs e)
13+
{
14+
timer1.Start();
15+
}
16+
private void timer1_Tick(object sender, EventArgs e)
17+
{
18+
labelTime.Text = DateTime.Now.ToString("hh:mm:ss tt");
19+
labelDate.Text = DateTime.Now.ToString("dddd, dd MMMM yyyy");
20+
}
21+
private void buttonExit_Click(object sender, EventArgs e)
22+
{
23+
Application.Exit();
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)