Add base files for 4.0.0
This commit is contained in:
parent
fd0f4c96fe
commit
98568cb705
22
Klokkeprogram.sln
Normal file
22
Klokkeprogram.sln
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2013
|
||||
VisualStudioVersion = 12.0.21005.1
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Klokkeprogram", "Klokkeprogram\Klokkeprogram.csproj", "{3F3FE9C6-9DB6-48B0-B11B-A71794502337}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{3F3FE9C6-9DB6-48B0-B11B-A71794502337}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{3F3FE9C6-9DB6-48B0-B11B-A71794502337}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3F3FE9C6-9DB6-48B0-B11B-A71794502337}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{3F3FE9C6-9DB6-48B0-B11B-A71794502337}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
6
Klokkeprogram/App.config
Normal file
6
Klokkeprogram/App.config
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
|
||||
</startup>
|
||||
</configuration>
|
BIN
Klokkeprogram/Icon256x.ico
Normal file
BIN
Klokkeprogram/Icon256x.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 264 KiB |
138
Klokkeprogram/Klokkeprogram.csproj
Normal file
138
Klokkeprogram/Klokkeprogram.csproj
Normal file
@ -0,0 +1,138 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{3F3FE9C6-9DB6-48B0-B11B-A71794502337}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Klokkeprogram</RootNamespace>
|
||||
<AssemblyName>Klokkeprogram</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<StartupObject>Klokkeprogram.Program</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>Icon256x.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Kontrollpanel.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Kontrollpanel.Designer.cs">
|
||||
<DependentUpon>Kontrollpanel.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Visningsvindu.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Visningsvindu.Designer.cs">
|
||||
<DependentUpon>Visningsvindu.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="Kontrollpanel.resx">
|
||||
<DependentUpon>Kontrollpanel.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Visningsvindu.resx">
|
||||
<DependentUpon>Visningsvindu.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Icon256x.ico" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include=".NETFramework,Version=v4.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Microsoft .NET Framework 4.5 %28x86 and x64%29</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
422
Klokkeprogram/Kontrollpanel.Designer.cs
generated
Normal file
422
Klokkeprogram/Kontrollpanel.Designer.cs
generated
Normal file
@ -0,0 +1,422 @@
|
||||
namespace Klokkeprogram
|
||||
{
|
||||
partial class controlPanel
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(controlPanel));
|
||||
this.tickTimer = new System.Windows.Forms.Timer(this.components);
|
||||
this.teamOneIntern = new System.Windows.Forms.TextBox();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.goalOne = new System.Windows.Forms.TextBox();
|
||||
this.goalTwo = new System.Windows.Forms.TextBox();
|
||||
this.teamOneLogoButton = new System.Windows.Forms.Button();
|
||||
this.teamTwoLogoButton = new System.Windows.Forms.Button();
|
||||
this.logoDialog = new System.Windows.Forms.OpenFileDialog();
|
||||
this.teamOneMinus = new System.Windows.Forms.Button();
|
||||
this.teamOnePlus = new System.Windows.Forms.Button();
|
||||
this.teamTwoMinus = new System.Windows.Forms.Button();
|
||||
this.teamTwoPlus = new System.Windows.Forms.Button();
|
||||
this.timerReset = new System.Windows.Forms.Button();
|
||||
this.timerToggle = new System.Windows.Forms.Button();
|
||||
this.maxMinSelect = new System.Windows.Forms.NumericUpDown();
|
||||
this.totalMinText = new System.Windows.Forms.TextBox();
|
||||
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||
this.clockStatus = new System.Windows.Forms.TextBox();
|
||||
this.keyingButton = new System.Windows.Forms.Button();
|
||||
this.colorDialog = new System.Windows.Forms.ColorDialog();
|
||||
this.fontButton = new System.Windows.Forms.Button();
|
||||
this.fontDialog = new System.Windows.Forms.FontDialog();
|
||||
this.textBox3 = new System.Windows.Forms.TextBox();
|
||||
this.offsetMinutes = new System.Windows.Forms.NumericUpDown();
|
||||
this.textBox4 = new System.Windows.Forms.TextBox();
|
||||
this.textBox5 = new System.Windows.Forms.TextBox();
|
||||
this.offsetSeconds = new System.Windows.Forms.NumericUpDown();
|
||||
((System.ComponentModel.ISupportInitialize)(this.maxMinSelect)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.offsetMinutes)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.offsetSeconds)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// tickTimer
|
||||
//
|
||||
this.tickTimer.Interval = 10;
|
||||
this.tickTimer.Tick += new System.EventHandler(this.tickTimer_Tick);
|
||||
//
|
||||
// teamOneIntern
|
||||
//
|
||||
this.teamOneIntern.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.teamOneIntern.Location = new System.Drawing.Point(12, 12);
|
||||
this.teamOneIntern.Name = "teamOneIntern";
|
||||
this.teamOneIntern.Size = new System.Drawing.Size(235, 26);
|
||||
this.teamOneIntern.TabIndex = 0;
|
||||
this.teamOneIntern.Text = "Lag #1";
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.textBox1.Location = new System.Drawing.Point(12, 135);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(235, 26);
|
||||
this.textBox1.TabIndex = 2;
|
||||
this.textBox1.Text = "Lag #2";
|
||||
//
|
||||
// goalOne
|
||||
//
|
||||
this.goalOne.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.goalOne.Location = new System.Drawing.Point(339, 12);
|
||||
this.goalOne.Name = "goalOne";
|
||||
this.goalOne.ReadOnly = true;
|
||||
this.goalOne.Size = new System.Drawing.Size(227, 26);
|
||||
this.goalOne.TabIndex = 4;
|
||||
this.goalOne.Text = "Mål";
|
||||
this.goalOne.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// goalTwo
|
||||
//
|
||||
this.goalTwo.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.goalTwo.Location = new System.Drawing.Point(339, 135);
|
||||
this.goalTwo.Name = "goalTwo";
|
||||
this.goalTwo.ReadOnly = true;
|
||||
this.goalTwo.Size = new System.Drawing.Size(227, 26);
|
||||
this.goalTwo.TabIndex = 7;
|
||||
this.goalTwo.Text = "Mål";
|
||||
this.goalTwo.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// teamOneLogoButton
|
||||
//
|
||||
this.teamOneLogoButton.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.teamOneLogoButton.Location = new System.Drawing.Point(12, 44);
|
||||
this.teamOneLogoButton.Name = "teamOneLogoButton";
|
||||
this.teamOneLogoButton.Size = new System.Drawing.Size(76, 34);
|
||||
this.teamOneLogoButton.TabIndex = 1;
|
||||
this.teamOneLogoButton.Text = "Logo";
|
||||
this.teamOneLogoButton.UseVisualStyleBackColor = true;
|
||||
this.teamOneLogoButton.Click += new System.EventHandler(this.teamOneLogoButton_Click);
|
||||
//
|
||||
// teamTwoLogoButton
|
||||
//
|
||||
this.teamTwoLogoButton.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.teamTwoLogoButton.Location = new System.Drawing.Point(12, 167);
|
||||
this.teamTwoLogoButton.Name = "teamTwoLogoButton";
|
||||
this.teamTwoLogoButton.Size = new System.Drawing.Size(76, 34);
|
||||
this.teamTwoLogoButton.TabIndex = 3;
|
||||
this.teamTwoLogoButton.Text = "Logo";
|
||||
this.teamTwoLogoButton.UseVisualStyleBackColor = true;
|
||||
this.teamTwoLogoButton.Click += new System.EventHandler(this.teamTwoLogoButton_Click);
|
||||
//
|
||||
// logoDialog
|
||||
//
|
||||
this.logoDialog.FileName = "Logo";
|
||||
this.logoDialog.Filter = "PNG-filer(*.png)|*.png|JPEG-filer (*.jpg)|*.jpg|Alle filer (*.*)|*.*";
|
||||
//
|
||||
// teamOneMinus
|
||||
//
|
||||
this.teamOneMinus.Font = new System.Drawing.Font("Arial Black", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.teamOneMinus.Location = new System.Drawing.Point(339, 44);
|
||||
this.teamOneMinus.Name = "teamOneMinus";
|
||||
this.teamOneMinus.Size = new System.Drawing.Size(105, 34);
|
||||
this.teamOneMinus.TabIndex = 5;
|
||||
this.teamOneMinus.Text = "-";
|
||||
this.teamOneMinus.UseVisualStyleBackColor = true;
|
||||
this.teamOneMinus.Click += new System.EventHandler(this.teamOneMinus_Click);
|
||||
//
|
||||
// teamOnePlus
|
||||
//
|
||||
this.teamOnePlus.Font = new System.Drawing.Font("Arial Black", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.teamOnePlus.Location = new System.Drawing.Point(461, 44);
|
||||
this.teamOnePlus.Name = "teamOnePlus";
|
||||
this.teamOnePlus.Size = new System.Drawing.Size(105, 34);
|
||||
this.teamOnePlus.TabIndex = 6;
|
||||
this.teamOnePlus.Text = "+";
|
||||
this.teamOnePlus.UseVisualStyleBackColor = true;
|
||||
this.teamOnePlus.Click += new System.EventHandler(this.teamOnePlus_Click);
|
||||
//
|
||||
// teamTwoMinus
|
||||
//
|
||||
this.teamTwoMinus.Font = new System.Drawing.Font("Arial Black", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.teamTwoMinus.Location = new System.Drawing.Point(339, 167);
|
||||
this.teamTwoMinus.Name = "teamTwoMinus";
|
||||
this.teamTwoMinus.Size = new System.Drawing.Size(105, 34);
|
||||
this.teamTwoMinus.TabIndex = 8;
|
||||
this.teamTwoMinus.Text = "-";
|
||||
this.teamTwoMinus.UseVisualStyleBackColor = true;
|
||||
this.teamTwoMinus.Click += new System.EventHandler(this.teamTwoMinus_Click);
|
||||
//
|
||||
// teamTwoPlus
|
||||
//
|
||||
this.teamTwoPlus.Font = new System.Drawing.Font("Arial Black", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.teamTwoPlus.Location = new System.Drawing.Point(461, 167);
|
||||
this.teamTwoPlus.Name = "teamTwoPlus";
|
||||
this.teamTwoPlus.Size = new System.Drawing.Size(105, 34);
|
||||
this.teamTwoPlus.TabIndex = 9;
|
||||
this.teamTwoPlus.Text = "+";
|
||||
this.teamTwoPlus.UseVisualStyleBackColor = true;
|
||||
this.teamTwoPlus.Click += new System.EventHandler(this.teamTwoPlus_Click);
|
||||
//
|
||||
// timerReset
|
||||
//
|
||||
this.timerReset.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.timerReset.Location = new System.Drawing.Point(376, 474);
|
||||
this.timerReset.Name = "timerReset";
|
||||
this.timerReset.Size = new System.Drawing.Size(84, 28);
|
||||
this.timerReset.TabIndex = 21;
|
||||
this.timerReset.Text = "Reset (00:00)";
|
||||
this.timerReset.UseVisualStyleBackColor = true;
|
||||
this.timerReset.Click += new System.EventHandler(this.timerReset_Click);
|
||||
//
|
||||
// timerToggle
|
||||
//
|
||||
this.timerToggle.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.timerToggle.Location = new System.Drawing.Point(376, 440);
|
||||
this.timerToggle.Name = "timerToggle";
|
||||
this.timerToggle.Size = new System.Drawing.Size(84, 28);
|
||||
this.timerToggle.TabIndex = 19;
|
||||
this.timerToggle.Text = "Start/Pause";
|
||||
this.timerToggle.UseVisualStyleBackColor = true;
|
||||
this.timerToggle.Click += new System.EventHandler(this.timerToggle_Click);
|
||||
//
|
||||
// maxMinSelect
|
||||
//
|
||||
this.maxMinSelect.Increment = new decimal(new int[] {
|
||||
2,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.maxMinSelect.Location = new System.Drawing.Point(466, 479);
|
||||
this.maxMinSelect.Maximum = new decimal(new int[] {
|
||||
240,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.maxMinSelect.Minimum = new decimal(new int[] {
|
||||
2,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.maxMinSelect.Name = "maxMinSelect";
|
||||
this.maxMinSelect.Size = new System.Drawing.Size(100, 20);
|
||||
this.maxMinSelect.TabIndex = 22;
|
||||
this.maxMinSelect.Value = new decimal(new int[] {
|
||||
90,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.maxMinSelect.ValueChanged += new System.EventHandler(this.maxMinSelect_ValueChanged);
|
||||
//
|
||||
// totalMinText
|
||||
//
|
||||
this.totalMinText.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.totalMinText.Location = new System.Drawing.Point(466, 444);
|
||||
this.totalMinText.Name = "totalMinText";
|
||||
this.totalMinText.ReadOnly = true;
|
||||
this.totalMinText.Size = new System.Drawing.Size(100, 20);
|
||||
this.totalMinText.TabIndex = 20;
|
||||
this.totalMinText.Text = "Total tid (minutter)";
|
||||
this.totalMinText.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// textBox2
|
||||
//
|
||||
this.textBox2.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.textBox2.Location = new System.Drawing.Point(376, 410);
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.ReadOnly = true;
|
||||
this.textBox2.Size = new System.Drawing.Size(84, 20);
|
||||
this.textBox2.TabIndex = 17;
|
||||
this.textBox2.Text = "Klokkestatus";
|
||||
this.textBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// clockStatus
|
||||
//
|
||||
this.clockStatus.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.clockStatus.Location = new System.Drawing.Point(466, 410);
|
||||
this.clockStatus.Name = "clockStatus";
|
||||
this.clockStatus.ReadOnly = true;
|
||||
this.clockStatus.Size = new System.Drawing.Size(100, 20);
|
||||
this.clockStatus.TabIndex = 18;
|
||||
this.clockStatus.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// keyingButton
|
||||
//
|
||||
this.keyingButton.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.keyingButton.Location = new System.Drawing.Point(12, 470);
|
||||
this.keyingButton.Name = "keyingButton";
|
||||
this.keyingButton.Size = new System.Drawing.Size(95, 28);
|
||||
this.keyingButton.TabIndex = 16;
|
||||
this.keyingButton.Text = "Nøklingsfarge";
|
||||
this.keyingButton.UseVisualStyleBackColor = true;
|
||||
this.keyingButton.Click += new System.EventHandler(this.keyingButton_Click);
|
||||
//
|
||||
// fontButton
|
||||
//
|
||||
this.fontButton.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.fontButton.Location = new System.Drawing.Point(12, 436);
|
||||
this.fontButton.Name = "fontButton";
|
||||
this.fontButton.Size = new System.Drawing.Size(95, 28);
|
||||
this.fontButton.TabIndex = 15;
|
||||
this.fontButton.Text = "Fontinnstillinger";
|
||||
this.fontButton.UseVisualStyleBackColor = true;
|
||||
this.fontButton.Click += new System.EventHandler(this.fontButton_Click);
|
||||
//
|
||||
// fontDialog
|
||||
//
|
||||
this.fontDialog.Color = System.Drawing.Color.White;
|
||||
this.fontDialog.Font = new System.Drawing.Font("Arial", 72F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
//
|
||||
// textBox3
|
||||
//
|
||||
this.textBox3.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.textBox3.Location = new System.Drawing.Point(376, 262);
|
||||
this.textBox3.Name = "textBox3";
|
||||
this.textBox3.ReadOnly = true;
|
||||
this.textBox3.Size = new System.Drawing.Size(195, 20);
|
||||
this.textBox3.TabIndex = 10;
|
||||
this.textBox3.Text = "Offsetinnstillinger";
|
||||
this.textBox3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// offsetMinutes
|
||||
//
|
||||
this.offsetMinutes.Location = new System.Drawing.Point(376, 314);
|
||||
this.offsetMinutes.Maximum = new decimal(new int[] {
|
||||
240,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.offsetMinutes.Name = "offsetMinutes";
|
||||
this.offsetMinutes.Size = new System.Drawing.Size(84, 20);
|
||||
this.offsetMinutes.TabIndex = 13;
|
||||
this.offsetMinutes.ValueChanged += new System.EventHandler(this.offsetMinutes_ValueChanged);
|
||||
//
|
||||
// textBox4
|
||||
//
|
||||
this.textBox4.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.textBox4.Location = new System.Drawing.Point(376, 288);
|
||||
this.textBox4.Name = "textBox4";
|
||||
this.textBox4.ReadOnly = true;
|
||||
this.textBox4.Size = new System.Drawing.Size(84, 20);
|
||||
this.textBox4.TabIndex = 11;
|
||||
this.textBox4.Text = "Minutter";
|
||||
this.textBox4.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// textBox5
|
||||
//
|
||||
this.textBox5.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.textBox5.Location = new System.Drawing.Point(466, 288);
|
||||
this.textBox5.Name = "textBox5";
|
||||
this.textBox5.ReadOnly = true;
|
||||
this.textBox5.Size = new System.Drawing.Size(105, 20);
|
||||
this.textBox5.TabIndex = 12;
|
||||
this.textBox5.Text = "Sekunder";
|
||||
this.textBox5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// offsetSeconds
|
||||
//
|
||||
this.offsetSeconds.Location = new System.Drawing.Point(466, 314);
|
||||
this.offsetSeconds.Maximum = new decimal(new int[] {
|
||||
60,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.offsetSeconds.Name = "offsetSeconds";
|
||||
this.offsetSeconds.Size = new System.Drawing.Size(105, 20);
|
||||
this.offsetSeconds.TabIndex = 14;
|
||||
this.offsetSeconds.ValueChanged += new System.EventHandler(this.offsetSeconds_ValueChanged);
|
||||
//
|
||||
// controlPanel
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(578, 510);
|
||||
this.Controls.Add(this.offsetSeconds);
|
||||
this.Controls.Add(this.textBox5);
|
||||
this.Controls.Add(this.textBox4);
|
||||
this.Controls.Add(this.offsetMinutes);
|
||||
this.Controls.Add(this.textBox3);
|
||||
this.Controls.Add(this.fontButton);
|
||||
this.Controls.Add(this.keyingButton);
|
||||
this.Controls.Add(this.clockStatus);
|
||||
this.Controls.Add(this.textBox2);
|
||||
this.Controls.Add(this.totalMinText);
|
||||
this.Controls.Add(this.maxMinSelect);
|
||||
this.Controls.Add(this.timerToggle);
|
||||
this.Controls.Add(this.timerReset);
|
||||
this.Controls.Add(this.teamTwoPlus);
|
||||
this.Controls.Add(this.teamTwoMinus);
|
||||
this.Controls.Add(this.teamOnePlus);
|
||||
this.Controls.Add(this.teamOneMinus);
|
||||
this.Controls.Add(this.teamTwoLogoButton);
|
||||
this.Controls.Add(this.teamOneLogoButton);
|
||||
this.Controls.Add(this.goalTwo);
|
||||
this.Controls.Add(this.goalOne);
|
||||
this.Controls.Add(this.textBox1);
|
||||
this.Controls.Add(this.teamOneIntern);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "controlPanel";
|
||||
this.Text = "Kontrollbord - Klokke- og Scoringsavvikling for HamKam Arenaproduksjon";
|
||||
this.Load += new System.EventHandler(this.Form1_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.maxMinSelect)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.offsetMinutes)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.offsetSeconds)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Timer tickTimer;
|
||||
private System.Windows.Forms.TextBox teamOneIntern;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
private System.Windows.Forms.TextBox goalOne;
|
||||
private System.Windows.Forms.TextBox goalTwo;
|
||||
private System.Windows.Forms.Button teamOneLogoButton;
|
||||
private System.Windows.Forms.Button teamTwoLogoButton;
|
||||
private System.Windows.Forms.OpenFileDialog logoDialog;
|
||||
private System.Windows.Forms.Button teamOneMinus;
|
||||
private System.Windows.Forms.Button teamOnePlus;
|
||||
private System.Windows.Forms.Button teamTwoMinus;
|
||||
private System.Windows.Forms.Button teamTwoPlus;
|
||||
private System.Windows.Forms.Button timerReset;
|
||||
private System.Windows.Forms.Button timerToggle;
|
||||
private System.Windows.Forms.NumericUpDown maxMinSelect;
|
||||
private System.Windows.Forms.TextBox totalMinText;
|
||||
private System.Windows.Forms.TextBox textBox2;
|
||||
private System.Windows.Forms.TextBox clockStatus;
|
||||
private System.Windows.Forms.Button keyingButton;
|
||||
private System.Windows.Forms.ColorDialog colorDialog;
|
||||
private System.Windows.Forms.Button fontButton;
|
||||
private System.Windows.Forms.FontDialog fontDialog;
|
||||
private System.Windows.Forms.TextBox textBox3;
|
||||
private System.Windows.Forms.NumericUpDown offsetMinutes;
|
||||
private System.Windows.Forms.TextBox textBox4;
|
||||
private System.Windows.Forms.TextBox textBox5;
|
||||
private System.Windows.Forms.NumericUpDown offsetSeconds;
|
||||
}
|
||||
}
|
||||
|
220
Klokkeprogram/Kontrollpanel.cs
Normal file
220
Klokkeprogram/Kontrollpanel.cs
Normal file
@ -0,0 +1,220 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Klokkeprogram
|
||||
{
|
||||
public partial class controlPanel : Form
|
||||
{
|
||||
private displayWindow DWindow = new displayWindow();
|
||||
public controlPanel()
|
||||
{
|
||||
InitializeComponent();
|
||||
DWindow.Show();
|
||||
tickTimer.Start();
|
||||
}
|
||||
|
||||
private void Form1_Load(object sender, EventArgs e)
|
||||
{}
|
||||
|
||||
private void teamOneLogoButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (logoDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
DWindow.teamOneLogo.Load(logoDialog.FileName);
|
||||
}
|
||||
}
|
||||
|
||||
private void teamTwoLogoButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(logoDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
DWindow.teamTwoLogo.Load(logoDialog.FileName);
|
||||
}
|
||||
}
|
||||
private int teamOneGoal = 0;
|
||||
private int teamTwoGoal = 0;
|
||||
private void teamOneMinus_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (teamOneGoal <= 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
teamOneGoal = teamOneGoal - 1;
|
||||
}
|
||||
}
|
||||
|
||||
private void teamOnePlus_Click(object sender, EventArgs e)
|
||||
{
|
||||
teamOneGoal++;
|
||||
}
|
||||
|
||||
private void teamTwoMinus_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(teamTwoGoal <= 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
teamTwoGoal--;
|
||||
}
|
||||
}
|
||||
|
||||
private void teamTwoPlus_Click(object sender, EventArgs e)
|
||||
{
|
||||
teamTwoGoal++;
|
||||
}
|
||||
private System.Diagnostics.Stopwatch Timer = new System.Diagnostics.Stopwatch();
|
||||
private bool halfPassed = false; // Halftime
|
||||
int maxMin = 90;
|
||||
|
||||
// Offset
|
||||
private int offsetMin = 0;
|
||||
private int offsetSec = 0;
|
||||
|
||||
private void tickTimer_Tick(object sender, EventArgs e)
|
||||
{
|
||||
TimeSpan TS = Timer.Elapsed;
|
||||
int halfMin = maxMin / 2;
|
||||
int hourMin = TS.Hours * 60;
|
||||
int Minutes = TS.Minutes + hourMin + offsetMin;
|
||||
int seconds = TS.Seconds + offsetSec;
|
||||
|
||||
if (seconds >= 60)
|
||||
{
|
||||
seconds = seconds - 60;
|
||||
Minutes++;
|
||||
}
|
||||
|
||||
string elapsedTime = String.Format("{0:00}:{1:00}", Minutes, seconds);
|
||||
DWindow.clockLabel.Text = elapsedTime;
|
||||
Debug.WriteLine("Elapsed time: " + elapsedTime);
|
||||
|
||||
if ( Minutes == halfMin && seconds == 0 && halfPassed == false )
|
||||
{
|
||||
Timer.Stop();
|
||||
halfPassed = true;
|
||||
}
|
||||
else if ( Minutes == maxMin && seconds == 0 )
|
||||
{
|
||||
Timer.Stop();
|
||||
}
|
||||
|
||||
if( Timer.IsRunning == true )
|
||||
{
|
||||
clockStatus.Text = "Pågår (" + elapsedTime + ")";
|
||||
maxMinSelect.ReadOnly = true;
|
||||
offsetSeconds.ReadOnly = true;
|
||||
offsetMinutes.ReadOnly = true;
|
||||
maxMinSelect.Minimum = maxMinSelect.Value;
|
||||
maxMinSelect.Maximum = maxMinSelect.Value;
|
||||
fontButton.Enabled = false;
|
||||
}
|
||||
else if( Timer.IsRunning == false && seconds == 0 && Minutes == 0 )
|
||||
{
|
||||
clockStatus.Text = "Stoppet (" + elapsedTime + ")";
|
||||
}
|
||||
else
|
||||
{
|
||||
clockStatus.Text = "Pauset (" + elapsedTime + ")";
|
||||
maxMinSelect.ReadOnly = false;
|
||||
offsetSeconds.ReadOnly = false;
|
||||
offsetMinutes.ReadOnly = false;
|
||||
maxMinSelect.Minimum = 2;
|
||||
maxMinSelect.Maximum = 240;
|
||||
fontButton.Enabled = true;
|
||||
}
|
||||
// Update goals
|
||||
DWindow.teamOneScore.Text = teamOneGoal.ToString();
|
||||
DWindow.teamTwoScore.Text = teamTwoGoal.ToString();
|
||||
goalOne.Text = "Mål: " + teamOneGoal.ToString();
|
||||
goalTwo.Text = "Mål: " + teamTwoGoal.ToString();
|
||||
}
|
||||
|
||||
private void timerReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(Timer.IsRunning == true)
|
||||
{
|
||||
Timer.Stop();
|
||||
Timer.Reset();
|
||||
}
|
||||
else
|
||||
{
|
||||
Timer.Reset();
|
||||
}
|
||||
teamOneGoal = 0;
|
||||
teamTwoGoal = 0;
|
||||
fontButton.Enabled = true;
|
||||
halfPassed = false;
|
||||
}
|
||||
|
||||
private void timerToggle_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Timer.IsRunning == true)
|
||||
{
|
||||
Timer.Stop();
|
||||
maxMinSelect.ReadOnly = false;
|
||||
offsetSeconds.ReadOnly = false;
|
||||
offsetMinutes.ReadOnly = false;
|
||||
maxMinSelect.Minimum = 2;
|
||||
maxMinSelect.Maximum = 240;
|
||||
}
|
||||
else
|
||||
{
|
||||
Timer.Start();
|
||||
}
|
||||
}
|
||||
|
||||
private void maxMinSelect_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
int value = Convert.ToInt32(maxMinSelect.Value);
|
||||
maxMin = value;
|
||||
}
|
||||
|
||||
private void keyingButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(colorDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
DWindow.BackColor = colorDialog.Color;
|
||||
}
|
||||
}
|
||||
|
||||
private void fontButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
fontDialog.ShowColor = true;
|
||||
fontDialog.Font = DWindow.clockLabel.Font;
|
||||
fontDialog.Color = DWindow.clockLabel.ForeColor;
|
||||
|
||||
if(fontDialog.ShowDialog() != DialogResult.Cancel)
|
||||
{
|
||||
DWindow.clockLabel.Font = fontDialog.Font;
|
||||
DWindow.teamOneScore.Font = fontDialog.Font;
|
||||
DWindow.teamTwoScore.Font = fontDialog.Font;
|
||||
|
||||
DWindow.clockLabel.ForeColor = fontDialog.Color;
|
||||
DWindow.teamOneScore.ForeColor = fontDialog.Color;
|
||||
DWindow.teamTwoScore.ForeColor = fontDialog.Color;
|
||||
}
|
||||
}
|
||||
|
||||
private void offsetMinutes_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
offsetMin = Convert.ToInt32(offsetMinutes.Value);
|
||||
}
|
||||
|
||||
private void offsetSeconds_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
offsetSec = Convert.ToInt32(offsetSeconds.Value);
|
||||
}
|
||||
}
|
||||
}
|
4644
Klokkeprogram/Kontrollpanel.resx
Normal file
4644
Klokkeprogram/Kontrollpanel.resx
Normal file
File diff suppressed because it is too large
Load Diff
22
Klokkeprogram/Program.cs
Normal file
22
Klokkeprogram/Program.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Klokkeprogram
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new controlPanel());
|
||||
}
|
||||
}
|
||||
}
|
36
Klokkeprogram/Properties/AssemblyInfo.cs
Normal file
36
Klokkeprogram/Properties/AssemblyInfo.cs
Normal file
@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Klokke- og Scoringsavvikling for HamKam Arenaproduksjon")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("HamKam Arenaproduksjon")]
|
||||
[assembly: AssemblyProduct("Klokke- og Scoringsavvikling for HamKam Arenaproduksjon")]
|
||||
[assembly: AssemblyCopyright("Copyright © Alex Thomassen - 2016")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("3e09dfee-eeb9-45bd-b2dd-d999bbf556c6")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("4.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("4.0.0.0")]
|
71
Klokkeprogram/Properties/Resources.Designer.cs
generated
Normal file
71
Klokkeprogram/Properties/Resources.Designer.cs
generated
Normal file
@ -0,0 +1,71 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.18444
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Klokkeprogram.Properties
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources
|
||||
{
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if ((resourceMan == null))
|
||||
{
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Klokkeprogram.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
117
Klokkeprogram/Properties/Resources.resx
Normal file
117
Klokkeprogram/Properties/Resources.resx
Normal file
@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: 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:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<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="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<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>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
30
Klokkeprogram/Properties/Settings.Designer.cs
generated
Normal file
30
Klokkeprogram/Properties/Settings.Designer.cs
generated
Normal file
@ -0,0 +1,30 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.18444
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Klokkeprogram.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
|
||||
{
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default
|
||||
{
|
||||
get
|
||||
{
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
7
Klokkeprogram/Properties/Settings.settings
Normal file
7
Klokkeprogram/Properties/Settings.settings
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
162
Klokkeprogram/Visningsvindu.Designer.cs
generated
Normal file
162
Klokkeprogram/Visningsvindu.Designer.cs
generated
Normal file
@ -0,0 +1,162 @@
|
||||
namespace Klokkeprogram
|
||||
{
|
||||
partial class displayWindow
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(displayWindow));
|
||||
this.mainPanel = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.teamOneLogo = new System.Windows.Forms.PictureBox();
|
||||
this.teamTwoLogo = new System.Windows.Forms.PictureBox();
|
||||
this.teamOneScore = new System.Windows.Forms.Label();
|
||||
this.clockLabel = new System.Windows.Forms.Label();
|
||||
this.teamTwoScore = new System.Windows.Forms.Label();
|
||||
this.mainPanel.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.teamOneLogo)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.teamTwoLogo)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// mainPanel
|
||||
//
|
||||
this.mainPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.mainPanel.ColumnCount = 5;
|
||||
this.mainPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
|
||||
this.mainPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
|
||||
this.mainPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
|
||||
this.mainPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
|
||||
this.mainPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
|
||||
this.mainPanel.Controls.Add(this.teamOneLogo, 0, 0);
|
||||
this.mainPanel.Controls.Add(this.teamTwoLogo, 4, 0);
|
||||
this.mainPanel.Controls.Add(this.teamOneScore, 1, 0);
|
||||
this.mainPanel.Controls.Add(this.clockLabel, 2, 0);
|
||||
this.mainPanel.Controls.Add(this.teamTwoScore, 3, 0);
|
||||
this.mainPanel.GrowStyle = System.Windows.Forms.TableLayoutPanelGrowStyle.FixedSize;
|
||||
this.mainPanel.Location = new System.Drawing.Point(12, 476);
|
||||
this.mainPanel.Name = "mainPanel";
|
||||
this.mainPanel.RowCount = 1;
|
||||
this.mainPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.mainPanel.Size = new System.Drawing.Size(1280, 129);
|
||||
this.mainPanel.TabIndex = 0;
|
||||
//
|
||||
// teamOneLogo
|
||||
//
|
||||
this.teamOneLogo.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.teamOneLogo.Location = new System.Drawing.Point(3, 3);
|
||||
this.teamOneLogo.Name = "teamOneLogo";
|
||||
this.teamOneLogo.Size = new System.Drawing.Size(154, 123);
|
||||
this.teamOneLogo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||
this.teamOneLogo.TabIndex = 0;
|
||||
this.teamOneLogo.TabStop = false;
|
||||
//
|
||||
// teamTwoLogo
|
||||
//
|
||||
this.teamTwoLogo.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.teamTwoLogo.Location = new System.Drawing.Point(1123, 3);
|
||||
this.teamTwoLogo.Name = "teamTwoLogo";
|
||||
this.teamTwoLogo.Size = new System.Drawing.Size(154, 123);
|
||||
this.teamTwoLogo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||
this.teamTwoLogo.TabIndex = 1;
|
||||
this.teamTwoLogo.TabStop = false;
|
||||
//
|
||||
// teamOneScore
|
||||
//
|
||||
this.teamOneScore.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
|
||||
this.teamOneScore.AutoSize = true;
|
||||
this.teamOneScore.Font = new System.Drawing.Font("Arial", 72F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.teamOneScore.ForeColor = System.Drawing.Color.White;
|
||||
this.teamOneScore.Location = new System.Drawing.Point(190, 0);
|
||||
this.teamOneScore.Name = "teamOneScore";
|
||||
this.teamOneScore.Size = new System.Drawing.Size(100, 129);
|
||||
this.teamOneScore.TabIndex = 2;
|
||||
this.teamOneScore.Text = "0";
|
||||
this.teamOneScore.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// clockLabel
|
||||
//
|
||||
this.clockLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.clockLabel.AutoSize = true;
|
||||
this.clockLabel.Font = new System.Drawing.Font("Arial", 72F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.clockLabel.ForeColor = System.Drawing.Color.White;
|
||||
this.clockLabel.Location = new System.Drawing.Point(323, 0);
|
||||
this.clockLabel.Name = "clockLabel";
|
||||
this.clockLabel.Size = new System.Drawing.Size(634, 129);
|
||||
this.clockLabel.TabIndex = 3;
|
||||
this.clockLabel.Text = "00:00";
|
||||
this.clockLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// teamTwoScore
|
||||
//
|
||||
this.teamTwoScore.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.teamTwoScore.AutoSize = true;
|
||||
this.teamTwoScore.Font = new System.Drawing.Font("Arial", 72F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.teamTwoScore.ForeColor = System.Drawing.Color.White;
|
||||
this.teamTwoScore.Location = new System.Drawing.Point(963, 0);
|
||||
this.teamTwoScore.Name = "teamTwoScore";
|
||||
this.teamTwoScore.Size = new System.Drawing.Size(154, 129);
|
||||
this.teamTwoScore.TabIndex = 4;
|
||||
this.teamTwoScore.Text = "0";
|
||||
this.teamTwoScore.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// displayWindow
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.Blue;
|
||||
this.ClientSize = new System.Drawing.Size(1304, 617);
|
||||
this.Controls.Add(this.mainPanel);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "displayWindow";
|
||||
this.Text = "Visningsvindu - Klokke- og Scoringsavvikling for HamKam Arenaproduksjon";
|
||||
this.Load += new System.EventHandler(this.displayWindow_Load);
|
||||
this.mainPanel.ResumeLayout(false);
|
||||
this.mainPanel.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.teamOneLogo)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.teamTwoLogo)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.TableLayoutPanel mainPanel;
|
||||
public System.Windows.Forms.PictureBox teamOneLogo;
|
||||
public System.Windows.Forms.PictureBox teamTwoLogo;
|
||||
public System.Windows.Forms.Label teamOneScore;
|
||||
public System.Windows.Forms.Label teamTwoScore;
|
||||
public System.Windows.Forms.Label clockLabel;
|
||||
|
||||
}
|
||||
}
|
26
Klokkeprogram/Visningsvindu.cs
Normal file
26
Klokkeprogram/Visningsvindu.cs
Normal file
@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Klokkeprogram
|
||||
{
|
||||
public partial class displayWindow : Form
|
||||
{
|
||||
public displayWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void displayWindow_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
4632
Klokkeprogram/Visningsvindu.resx
Normal file
4632
Klokkeprogram/Visningsvindu.resx
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user