diff --git a/.vs/TournamentManager/DesignTimeBuild/.dtbcache.v2 b/.vs/TournamentManager/DesignTimeBuild/.dtbcache.v2 new file mode 100644 index 0000000000000000000000000000000000000000..7ea6d93c7cf94b40bf6de3e00371a34c2d9b775f Binary files /dev/null and b/.vs/TournamentManager/DesignTimeBuild/.dtbcache.v2 differ diff --git a/.vs/TournamentManager/v16/.suo b/.vs/TournamentManager/v16/.suo new file mode 100644 index 0000000000000000000000000000000000000000..2aa9fa15e9c58f4b1ad0d70da046d7c428c48a90 Binary files /dev/null and b/.vs/TournamentManager/v16/.suo differ diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json new file mode 100644 index 0000000000000000000000000000000000000000..bb42b5b79f950a2e1c8300ecc56efeb5a8a3132c --- /dev/null +++ b/.vs/VSWorkspaceState.json @@ -0,0 +1,7 @@ +{ + "ExpandedNodes": [ + "", + "\\src" + ], + "PreviewInSolutionExplorer": false +} \ No newline at end of file diff --git a/.vs/c-sharp-semestral-project-1/v16/.suo b/.vs/c-sharp-semestral-project-1/v16/.suo new file mode 100644 index 0000000000000000000000000000000000000000..b96a16d383c28fc60ccf64b5bacf1e55fe2cd0ee Binary files /dev/null and b/.vs/c-sharp-semestral-project-1/v16/.suo differ diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..7089fe8ea329fbc552fc7a51e2b380fc0b90259d Binary files /dev/null and b/.vs/slnx.sqlite differ diff --git a/TournamentManager.csproj.user b/TournamentManager.csproj.user index cdebd1d5f435591ce02c43a266e29ea70e16df6f..bb8a556dc66d309f029d141ea923cf707c206816 100644 --- a/TournamentManager.csproj.user +++ b/TournamentManager.csproj.user @@ -4,9 +4,15 @@ <ShowAllFiles>false</ShowAllFiles> </PropertyGroup> <ItemGroup> + <Compile Update="src\ExportControl.cs"> + <SubType>UserControl</SubType> + </Compile> <Compile Update="src\FileNameForm.cs"> <SubType>Form</SubType> </Compile> + <Compile Update="src\GroupControl.cs"> + <SubType>UserControl</SubType> + </Compile> <Compile Update="src\ImportFileControl.cs"> <SubType>UserControl</SubType> </Compile> diff --git a/TournamentManager.sln b/TournamentManager.sln new file mode 100644 index 0000000000000000000000000000000000000000..e966c271f644d2bad6b6e51eb4bbb9fc955e76fb --- /dev/null +++ b/TournamentManager.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31313.79 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TournamentManager", "TournamentManager.csproj", "{08B647B8-20FA-4286-AC79-A95F633B6B09}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {08B647B8-20FA-4286-AC79-A95F633B6B09}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {08B647B8-20FA-4286-AC79-A95F633B6B09}.Debug|Any CPU.Build.0 = Debug|Any CPU + {08B647B8-20FA-4286-AC79-A95F633B6B09}.Release|Any CPU.ActiveCfg = Release|Any CPU + {08B647B8-20FA-4286-AC79-A95F633B6B09}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F9162AA5-4663-4A6B-98AA-07BAF229548D} + EndGlobalSection +EndGlobal diff --git a/obj/Debug/net5.0-windows/TournamentManager.csproj.CoreCompileInputs.cache b/obj/Debug/net5.0-windows/TournamentManager.csproj.CoreCompileInputs.cache index 5702ce0a56de376f4d1bb5ba50f206e94873055d..ba67ddca2a15310b35d501acf229f7c92cdbf9a4 100644 --- a/obj/Debug/net5.0-windows/TournamentManager.csproj.CoreCompileInputs.cache +++ b/obj/Debug/net5.0-windows/TournamentManager.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -5aee29cf227699925bd7627b122e4e45f86685c7 +6e5ca88c712bf3b5a92f367155b7ffc624cd7a70 diff --git a/obj/Debug/net5.0-windows/TournamentManager.csproj.FileListAbsolute.txt b/obj/Debug/net5.0-windows/TournamentManager.csproj.FileListAbsolute.txt index 1b5aa4e8dba0a199d3ec07d9e1c910b4f92a6269..9cbe3b18ea3c37285fd87e47847759b4845be58b 100644 --- a/obj/Debug/net5.0-windows/TournamentManager.csproj.FileListAbsolute.txt +++ b/obj/Debug/net5.0-windows/TournamentManager.csproj.FileListAbsolute.txt @@ -50,3 +50,4 @@ C:\Users\micha\School\RiderProjects\c-sharp-semestral-project-1\obj\Debug\net5.0 C:\Users\micha\School\RiderProjects\c-sharp-semestral-project-1\obj\Debug\net5.0-windows\ref\TournamentManager.dll C:\Users\micha\School\RiderProjects\c-sharp-semestral-project-1\obj\Debug\net5.0-windows\TournamentManager.pdb C:\Users\micha\School\RiderProjects\c-sharp-semestral-project-1\obj\Debug\net5.0-windows\TournamentManager.genruntimeconfig.cache +C:\Users\micha\School\RiderProjects\c-sharp-semestral-project-1\obj\Debug\net5.0-windows\TournamentManager.src.GroupControl.resources diff --git a/obj/Debug/net5.0-windows/TournamentManager.csproj.GenerateResource.cache b/obj/Debug/net5.0-windows/TournamentManager.csproj.GenerateResource.cache index 1ec4fdc98ac640e0a8d15b4288a258bbe086a9ed..f2447ad0d2ed0b89a8b9586784d6572d2b64271a 100644 Binary files a/obj/Debug/net5.0-windows/TournamentManager.csproj.GenerateResource.cache and b/obj/Debug/net5.0-windows/TournamentManager.csproj.GenerateResource.cache differ diff --git a/obj/Debug/net5.0-windows/TournamentManager.csprojAssemblyReference.cache b/obj/Debug/net5.0-windows/TournamentManager.csprojAssemblyReference.cache index bff4a3326541bd30752ea601f81ac03fed6880ad..480d75008485368cdf5c5f62d4027881bfeccf9f 100644 Binary files a/obj/Debug/net5.0-windows/TournamentManager.csprojAssemblyReference.cache and b/obj/Debug/net5.0-windows/TournamentManager.csprojAssemblyReference.cache differ diff --git a/obj/Debug/net5.0-windows/TournamentManager.dll b/obj/Debug/net5.0-windows/TournamentManager.dll index 632c6c48eee5790bf7b0ada790cf9292cc99c11d..00178bf05622154bc9922fe8a7df38df28008ccd 100644 Binary files a/obj/Debug/net5.0-windows/TournamentManager.dll and b/obj/Debug/net5.0-windows/TournamentManager.dll differ diff --git a/obj/Debug/net5.0-windows/TournamentManager.pdb b/obj/Debug/net5.0-windows/TournamentManager.pdb index f61ec603d0893939afb1878b3dff79e2b9ee11c6..9efe8c8148972fe962870c784266434fa82bb499 100644 Binary files a/obj/Debug/net5.0-windows/TournamentManager.pdb and b/obj/Debug/net5.0-windows/TournamentManager.pdb differ diff --git a/obj/Debug/net5.0-windows/TournamentManager.src.GroupControl.resources b/obj/Debug/net5.0-windows/TournamentManager.src.GroupControl.resources new file mode 100644 index 0000000000000000000000000000000000000000..6c05a9776bd7cbae976fdcec7e3a254e93018279 Binary files /dev/null and b/obj/Debug/net5.0-windows/TournamentManager.src.GroupControl.resources differ diff --git a/obj/Debug/net5.0-windows/ref/TournamentManager.dll b/obj/Debug/net5.0-windows/ref/TournamentManager.dll index 7d98c2156971fe2b0e08a1715fff4f89a73c986d..7c4f2845e90bf8100d890eb42e7dc3e796fc884e 100644 Binary files a/obj/Debug/net5.0-windows/ref/TournamentManager.dll and b/obj/Debug/net5.0-windows/ref/TournamentManager.dll differ diff --git a/obj/Release/net5.0-windows/TournamentManager.GeneratedMSBuildEditorConfig.editorconfig b/obj/Release/net5.0-windows/TournamentManager.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000000000000000000000000000000000000..76942747d6857edf39c73a1506ec379e915780af --- /dev/null +++ b/obj/Release/net5.0-windows/TournamentManager.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,8 @@ +is_global = true +build_property.TargetFramework = net5.0-windows +build_property.TargetPlatformMinVersion = 7.0 +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.PublishSingleFile = +build_property.IncludeAllContentForSelfExtract = +build_property._SupportedPlatformList = Android,iOS,Linux,macOS,Windows diff --git a/obj/Release/net5.0-windows/TournamentManager.assets.cache b/obj/Release/net5.0-windows/TournamentManager.assets.cache index c69cfd3ed63d87bb0a97de46b57898567da70eda..7c4ed4424304fcfe6f20cb67d3159b3cb21cf8d4 100644 Binary files a/obj/Release/net5.0-windows/TournamentManager.assets.cache and b/obj/Release/net5.0-windows/TournamentManager.assets.cache differ diff --git a/obj/rider.project.restore.info b/obj/rider.project.restore.info index b4b6a6a3d190b26c1baf0a91d90de1946d9e85fd..f365a93c97cbe8208309957d321b2d55f0cbaa29 100644 --- a/obj/rider.project.restore.info +++ b/obj/rider.project.restore.info @@ -1 +1 @@ -16221870228114435 \ No newline at end of file +16225451119597750 \ No newline at end of file diff --git a/src/ExportControl.Designer.cs b/src/ExportControl.Designer.cs new file mode 100644 index 0000000000000000000000000000000000000000..e31aca24bf68faf8814fc4519681f1fa46029825 --- /dev/null +++ b/src/ExportControl.Designer.cs @@ -0,0 +1,46 @@ + +namespace TournamentManager.src +{ + partial class ExportControl + { + /// <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 Component 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.SuspendLayout(); + // + // ExportControl + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Name = "ExportControl"; + this.Size = new System.Drawing.Size(526, 150); + this.ResumeLayout(false); + + } + + #endregion + } +} diff --git a/src/ExportControl.cs b/src/ExportControl.cs new file mode 100644 index 0000000000000000000000000000000000000000..3dd1cb28f4742a63ad8523c5408eb42332aeea89 --- /dev/null +++ b/src/ExportControl.cs @@ -0,0 +1,20 @@ +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 TournamentManager.src +{ + public partial class ExportControl : UserControl + { + public ExportControl() + { + InitializeComponent(); + } + } +} diff --git a/src/ExportControl.resx b/src/ExportControl.resx new file mode 100644 index 0000000000000000000000000000000000000000..f298a7be80982ebd538a05758a03bc827419d418 --- /dev/null +++ b/src/ExportControl.resx @@ -0,0 +1,60 @@ +<root> + <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"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <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"> + <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" 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"> + <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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> +</root> \ No newline at end of file diff --git a/src/Group.cs b/src/Group.cs index 8c1cd6559b499d5935b25c99a7fc15ffebe9d243..e3b61bbb9d71dabed703cd7f1544a3fce5aa1aee 100644 --- a/src/Group.cs +++ b/src/Group.cs @@ -1,7 +1,12 @@ -namespace TournamentManager +using System.Runtime.Serialization; + +namespace TournamentManager { - public class Group + public class Group : ISerializable { - + public void GetObjectData(SerializationInfo info, StreamingContext context) + { + throw new System.NotImplementedException(); + } } } \ No newline at end of file diff --git a/src/GroupControl.Designer.cs b/src/GroupControl.Designer.cs new file mode 100644 index 0000000000000000000000000000000000000000..3e4cc76dba727f8d03dbc2d91ad000a00f3fc464 --- /dev/null +++ b/src/GroupControl.Designer.cs @@ -0,0 +1,140 @@ + +namespace TournamentManager.src +{ + partial class GroupControl + { + /// <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 Component 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.cbGroup = new System.Windows.Forms.ComboBox(); + this.cbParticipant1 = new System.Windows.Forms.ComboBox(); + this.cbParticipant2 = new System.Windows.Forms.ComboBox(); + this.tbParticipant2 = new System.Windows.Forms.TextBox(); + this.tbParticipant1 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.btnSubmit = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // cbGroup + // + this.cbGroup.FormattingEnabled = true; + this.cbGroup.Location = new System.Drawing.Point(53, 8); + this.cbGroup.Name = "cbGroup"; + this.cbGroup.Size = new System.Drawing.Size(128, 21); + this.cbGroup.TabIndex = 0; + // + // cbParticipant1 + // + this.cbParticipant1.FormattingEnabled = true; + this.cbParticipant1.Location = new System.Drawing.Point(0, 42); + this.cbParticipant1.Name = "cbParticipant1"; + this.cbParticipant1.Size = new System.Drawing.Size(115, 21); + this.cbParticipant1.TabIndex = 1; + // + // cbParticipant2 + // + this.cbParticipant2.FormattingEnabled = true; + this.cbParticipant2.Location = new System.Drawing.Point(303, 42); + this.cbParticipant2.Name = "cbParticipant2"; + this.cbParticipant2.Size = new System.Drawing.Size(118, 21); + this.cbParticipant2.TabIndex = 2; + // + // tbParticipant2 + // + this.tbParticipant2.Location = new System.Drawing.Point(244, 42); + this.tbParticipant2.Name = "tbParticipant2"; + this.tbParticipant2.Size = new System.Drawing.Size(54, 20); + this.tbParticipant2.TabIndex = 3; + // + // tbParticipant1 + // + this.tbParticipant1.Location = new System.Drawing.Point(120, 42); + this.tbParticipant1.Name = "tbParticipant1"; + this.tbParticipant1.Size = new System.Drawing.Size(54, 20); + this.tbParticipant1.TabIndex = 4; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Segoe UI Semibold", 11.25F, System.Drawing.FontStyle.Bold); + this.label1.Location = new System.Drawing.Point(197, 44); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(27, 20); + this.label1.TabIndex = 5; + this.label1.Text = "VS"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("Segoe UI Semibold", 11.25F, System.Drawing.FontStyle.Bold); + this.label2.Location = new System.Drawing.Point(0, 8); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(56, 20); + this.label2.TabIndex = 6; + this.label2.Text = "Group:"; + // + // btnSubmit + // + this.btnSubmit.Font = new System.Drawing.Font("Segoe UI Semibold", 11.25F, System.Drawing.FontStyle.Bold); + this.btnSubmit.Location = new System.Drawing.Point(294, 75); + this.btnSubmit.Name = "btnSubmit"; + this.btnSubmit.Size = new System.Drawing.Size(118, 29); + this.btnSubmit.TabIndex = 7; + this.btnSubmit.Text = "Submit"; + this.btnSubmit.UseVisualStyleBackColor = true; + // + // GroupControl + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.btnSubmit); + this.Controls.Add(this.label2); + this.Controls.Add(this.label1); + this.Controls.Add(this.tbParticipant1); + this.Controls.Add(this.tbParticipant2); + this.Controls.Add(this.cbParticipant2); + this.Controls.Add(this.cbParticipant1); + this.Controls.Add(this.cbGroup); + this.Name = "GroupControl"; + this.Size = new System.Drawing.Size(423, 111); + this.ResumeLayout(false); + this.PerformLayout(); + } + + #endregion + + private System.Windows.Forms.ComboBox cbGroup; + private System.Windows.Forms.ComboBox cbParticipant1; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox tbParticipant2; + private System.Windows.Forms.TextBox tbParticipant1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.ComboBox cbParticipant2; + private System.Windows.Forms.Button btnSubmit; + } +} diff --git a/src/GroupControl.cs b/src/GroupControl.cs new file mode 100644 index 0000000000000000000000000000000000000000..ac6f1448a935d869501b6c51c2cec5b3ed25dc3d --- /dev/null +++ b/src/GroupControl.cs @@ -0,0 +1,20 @@ +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 TournamentManager.src +{ + public partial class GroupControl : UserControl + { + public GroupControl() + { + InitializeComponent(); + } + } +} diff --git a/src/GroupControl.resx b/src/GroupControl.resx new file mode 100644 index 0000000000000000000000000000000000000000..1af7de150c99c12dd67a509fe57c10d63e4eeb04 --- /dev/null +++ b/src/GroupControl.resx @@ -0,0 +1,120 @@ +<?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.Runtime.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:import namespace="http://www.w3.org/XML/1998/namespace" /> + <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" 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"> + <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" 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"> + <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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> +</root> \ No newline at end of file diff --git a/src/ManageTournamentForm.Designer.cs b/src/ManageTournamentForm.Designer.cs index 6da6d0da15f5de33592817e5960469fa970d09c9..be8cb40bfebfced9cb73d7580e9edec422e8bf5b 100644 --- a/src/ManageTournamentForm.Designer.cs +++ b/src/ManageTournamentForm.Designer.cs @@ -35,8 +35,16 @@ namespace TournamentManager this.enterantCntrl = new TournamentManager.AddEntrantControl(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.manageParticipantsControl = new TournamentManager.src.ManageParticipantsControl(); + this.groupBox3 = new System.Windows.Forms.GroupBox(); + this.groupControl1 = new TournamentManager.src.GroupControl(); + this.groupBox4 = new System.Windows.Forms.GroupBox(); + this.groupBox5 = new System.Windows.Forms.GroupBox(); + this.btnGroups = new System.Windows.Forms.Button(); + this.btnPlayOff = new System.Windows.Forms.Button(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); + this.groupBox3.SuspendLayout(); + this.groupBox4.SuspendLayout(); this.SuspendLayout(); // // groupBox1 @@ -73,17 +81,80 @@ namespace TournamentManager this.manageParticipantsControl.Size = new System.Drawing.Size(342, 88); this.manageParticipantsControl.TabIndex = 0; // + // groupBox3 + // + this.groupBox3.Controls.Add(this.groupControl1); + this.groupBox3.Location = new System.Drawing.Point(394, 12); + this.groupBox3.Name = "groupBox3"; + this.groupBox3.Size = new System.Drawing.Size(502, 154); + this.groupBox3.TabIndex = 2; + this.groupBox3.TabStop = false; + this.groupBox3.Text = "Manage Group"; + // + // groupControl1 + // + this.groupControl1.Location = new System.Drawing.Point(6, 22); + this.groupControl1.Name = "groupControl1"; + this.groupControl1.Size = new System.Drawing.Size(491, 123); + this.groupControl1.TabIndex = 0; + // + // groupBox4 + // + this.groupBox4.Controls.Add(this.btnPlayOff); + this.groupBox4.Controls.Add(this.btnGroups); + this.groupBox4.Location = new System.Drawing.Point(395, 172); + this.groupBox4.Name = "groupBox4"; + this.groupBox4.Size = new System.Drawing.Size(501, 93); + this.groupBox4.TabIndex = 3; + this.groupBox4.TabStop = false; + this.groupBox4.Text = "Calculate"; + // + // groupBox5 + // + this.groupBox5.Location = new System.Drawing.Point(394, 271); + this.groupBox5.Name = "groupBox5"; + this.groupBox5.Size = new System.Drawing.Size(502, 285); + this.groupBox5.TabIndex = 4; + this.groupBox5.TabStop = false; + this.groupBox5.Text = "Export Data"; + // + // btnGroups + // + this.btnGroups.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point); + this.btnGroups.Location = new System.Drawing.Point(6, 22); + this.btnGroups.Name = "btnGroups"; + this.btnGroups.Size = new System.Drawing.Size(194, 56); + this.btnGroups.TabIndex = 0; + this.btnGroups.Text = "Calculate Groups"; + this.btnGroups.UseVisualStyleBackColor = true; + this.btnGroups.Click += new System.EventHandler(this.btnGroups_Click); + // + // btnPlayOff + // + this.btnPlayOff.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point); + this.btnPlayOff.Location = new System.Drawing.Point(301, 22); + this.btnPlayOff.Name = "btnPlayOff"; + this.btnPlayOff.Size = new System.Drawing.Size(194, 56); + this.btnPlayOff.TabIndex = 1; + this.btnPlayOff.Text = "Calculate Play Off"; + this.btnPlayOff.UseVisualStyleBackColor = true; + // // ManageTournamentForm // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(908, 568); + this.Controls.Add(this.groupBox5); + this.Controls.Add(this.groupBox4); + this.Controls.Add(this.groupBox3); this.Controls.Add(this.groupBox2); this.Controls.Add(this.groupBox1); this.Name = "ManageTournamentForm"; this.Text = "ManageTournamentForm"; this.groupBox1.ResumeLayout(false); this.groupBox2.ResumeLayout(false); + this.groupBox3.ResumeLayout(false); + this.groupBox4.ResumeLayout(false); this.ResumeLayout(false); } @@ -94,5 +165,11 @@ namespace TournamentManager private AddEntrantControl enterantCntrl; private System.Windows.Forms.GroupBox groupBox2; private src.ManageParticipantsControl manageParticipantsControl; + private System.Windows.Forms.GroupBox groupBox3; + private src.GroupControl groupControl1; + private System.Windows.Forms.GroupBox groupBox4; + private System.Windows.Forms.Button btnPlayOff; + private System.Windows.Forms.Button btnGroups; + private System.Windows.Forms.GroupBox groupBox5; } } \ No newline at end of file diff --git a/src/ManageTournamentForm.cs b/src/ManageTournamentForm.cs index 05a65640943fb2cb5de1805dc76620fe713de53f..41d8e5d532b1a871323d13412344b2b8765d7336 100644 --- a/src/ManageTournamentForm.cs +++ b/src/ManageTournamentForm.cs @@ -71,6 +71,9 @@ namespace TournamentManager } + private void btnGroups_Click(object sender, EventArgs e) + { + } } } \ No newline at end of file diff --git a/src/Program.cs b/src/Program.cs index f8bea20b4c17a772d20cd65d39ea98c45db1af9a..24f9bd2a0a6ba33c520d7c3ea2e065c92d8697f7 100644 --- a/src/Program.cs +++ b/src/Program.cs @@ -21,13 +21,11 @@ namespace TournamentManager.src var menuForm = new MenuForm(RelativeLocalPath); Application.Run(menuForm); - var path = menuForm.TournamentPath; - if (menuForm.DialogResult == DialogResult.Cancel) + if (menuForm.DialogResult != DialogResult.OK) { return; } - - var mainForm = new ManageTournamentForm(path); + var mainForm = new ManageTournamentForm(menuForm.TournamentPath); Application.Run(mainForm); }