finished gyakorlasGUI

This commit is contained in:
Digi 2024-09-08 17:31:12 +02:00
parent 1ac18d6715
commit 40d3601e7f
30 changed files with 907 additions and 0 deletions

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
</configuration>

View File

@ -0,0 +1,141 @@
namespace HegyekMO_GUI
{
partial class Form1
{
/// <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.hegyek_LB = new System.Windows.Forms.ListBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.hegycsucs_TB = new System.Windows.Forms.TextBox();
this.hegyseg_TB = new System.Windows.Forms.TextBox();
this.magassag_TB = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// hegyek_LB
//
this.hegyek_LB.FormattingEnabled = true;
this.hegyek_LB.Location = new System.Drawing.Point(404, 12);
this.hegyek_LB.Name = "hegyek_LB";
this.hegyek_LB.Size = new System.Drawing.Size(367, 407);
this.hegyek_LB.TabIndex = 0;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 42);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(90, 13);
this.label1.TabIndex = 1;
this.label1.Text = "Hegycsúcs neve:";
this.label1.Click += new System.EventHandler(this.label1_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(12, 96);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(52, 13);
this.label2.TabIndex = 2;
this.label2.Text = "Hegység:";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(12, 159);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(59, 13);
this.label3.TabIndex = 3;
this.label3.Text = "Magasság:";
//
// hegycsucs_TB
//
this.hegycsucs_TB.Location = new System.Drawing.Point(122, 42);
this.hegycsucs_TB.Name = "hegycsucs_TB";
this.hegycsucs_TB.Size = new System.Drawing.Size(208, 20);
this.hegycsucs_TB.TabIndex = 4;
//
// hegyseg_TB
//
this.hegyseg_TB.Location = new System.Drawing.Point(122, 96);
this.hegyseg_TB.Name = "hegyseg_TB";
this.hegyseg_TB.Size = new System.Drawing.Size(208, 20);
this.hegyseg_TB.TabIndex = 5;
//
// magassag_TB
//
this.magassag_TB.Location = new System.Drawing.Point(122, 152);
this.magassag_TB.Name = "magassag_TB";
this.magassag_TB.Size = new System.Drawing.Size(208, 20);
this.magassag_TB.TabIndex = 6;
//
// button1
//
this.button1.Location = new System.Drawing.Point(15, 272);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(315, 23);
this.button1.TabIndex = 7;
this.button1.Text = "adatok beszúrása a hegyekMo.txt-be";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.button1);
this.Controls.Add(this.magassag_TB);
this.Controls.Add(this.hegyseg_TB);
this.Controls.Add(this.hegycsucs_TB);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.hegyek_LB);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ListBox hegyek_LB;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox hegycsucs_TB;
private System.Windows.Forms.TextBox hegyseg_TB;
private System.Windows.Forms.TextBox magassag_TB;
private System.Windows.Forms.Button button1;
}
}

View File

@ -0,0 +1,127 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.ComTypes;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HegyekMO_GUI
{
public partial class Form1 : Form
{
const string path = @"hegyekMo.txt";
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
DataRead();
ListBoxFill();
}
public void ListBoxFill()
{
string header_str = $"{Data.header[0]}\t{Data.header[1]}\t{Data.header[2]}";
hegyek_LB.Items.Add(header_str);
foreach (var item in Data.hegyek)
{
string line = $"{item.HegycsucsNev}\t{item.Hegyseg}\t{item.Magassag}";
hegyek_LB.Items.Add(line);
}
}
public void DataWrite(Hegy item)
{
string line = $"{item.HegycsucsNev};{item.Hegyseg};{item.Magassag}";
File.AppendAllText(path, line);
}
public static void DataRead()
{
FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read);
StreamReader streamReader = new StreamReader(fileStream);
string line = streamReader.ReadLine();
Data.header = line.Split(';');
line = streamReader.ReadLine();
while (line != null)
{
string[] datas = line.Split(';');
Hegy hegy = new Hegy(datas[0], datas[1], Convert.ToInt32(datas[2]));
Data.hegyek.Add(hegy);
line = streamReader.ReadLine();
}
streamReader.Close();
fileStream.Close();
}
private void label1_Click(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
if (IsEverythingFilled() && IsHeightANumber())
{
Hegy hegy = new Hegy(hegycsucs_TB.Text, hegyseg_TB.Text, Convert.ToInt32(magassag_TB.Text));
DataWrite(hegy);
MessageBox.Show("Az állomány bővítése sikeres volt!");
}
}
private bool IsEverythingFilled()
{
if (hegycsucs_TB.Text != "" && hegyseg_TB.Text != "" && magassag_TB.Text != "")
{
return true;
}
MessageBox.Show("Kérem minden mezőt töltsön ki!");
return false;
}
private bool IsHeightANumber()
{
bool asd = Int32.TryParse(magassag_TB.Text, out int n);
if (!asd)
{
MessageBox.Show("Nem számot adtál meg!");
}
return asd;
}
}
public static class Data
{
public static string[] header = new string[1];
public static List<Hegy> hegyek = new List<Hegy>();
}
public class Hegy
{
public string HegycsucsNev { get; private set; }
public string Hegyseg { get; private set; }
public int Magassag { get; private set; }
public Hegy(string hegycsucsnev, string hegyseg, int magassag)
{
HegycsucsNev = hegycsucsnev;
Hegyseg = hegyseg;
Magassag = magassag;
}
}
}

View File

@ -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>

View File

@ -0,0 +1,83 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" 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>{4A2E5F82-F708-4EDD-9070-CCCEA3F9169D}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>HegyekMO_GUI</RootNamespace>
<AssemblyName>HegyekMO_GUI</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</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>
<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.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.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>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.8.34408.163
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HegyekMO_GUI", "HegyekMO_GUI.csproj", "{4A2E5F82-F708-4EDD-9070-CCCEA3F9169D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4A2E5F82-F708-4EDD-9070-CCCEA3F9169D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4A2E5F82-F708-4EDD-9070-CCCEA3F9169D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4A2E5F82-F708-4EDD-9070-CCCEA3F9169D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4A2E5F82-F708-4EDD-9070-CCCEA3F9169D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {B5B17600-4DDD-4DEB-9D79-90096EC5E624}
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HegyekMO_GUI
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}

View 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("HegyekMO_GUI")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("HegyekMO_GUI")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[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("4a2e5f82-f708-4edd-9070-cccea3f9169d")]
// 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("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -0,0 +1,71 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace HegyekMO_GUI.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("HegyekMO_GUI.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;
}
}
}
}

View 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>

View File

@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace HegyekMO_GUI.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;
}
}
}
}

View 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>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
</configuration>

View File

@ -0,0 +1,101 @@
Hegycsúcs neve;Hegység;Magasság
Ágasvár;Mátra;789
Bálvány;Bükk-vidék;956
Büszkés-hegy;Bükk-vidék;952
Cserepes-kő;Bükk-vidék;823
Csikorgó;Bükk-vidék;778
Csóványos;Börzsöny;938
Darázs-hegy;Mátra;834
Esztea-fő;Bükk-vidék;797
Fekete-Sár-bérc;Bükk-vidék;930
Felső-Borovnyák (2);Bükk-vidék;932
Felső-Borovnyák (1);Bükk-vidék;945
Fodor-hegy;Bükk-vidék;931
Füstös-kő-bérc;Bükk-vidék;912
Galya-tető;Mátra;964
Galya-vár;Mátra;837
Gergely-hegy;Zempléni-hegység;783
Győr-hegy;Mátra;831
Hangyás-bérc (1);Börzsöny;863
Hangyás-bérc (2);Börzsöny;854
Hármas-határ-hegy;Kőszegi-hegység;795
Három-kő;Bükk-vidék;904
Hegyes-kő;Bükk-vidék;792
Hermanház-tető;Zempléni-hegység;884
Hidas-bérc;Mátra;971
Hosszú-bérc;Bükk-vidék;820
Huta-bérc;Bükk-vidék;920
Írott-kő;Kőszegi-hegység;882
Ispán-hegy;Bükk-vidék;912
Istállós-kő;Bükk-vidék;958
Kékes;Mátra;1014
Kerek-hegy;Bükk-vidék;827
Kerek-hegy;Bükk-vidék;790
Kerek-réti-fő;Bükk-vidék;880
Kis-Átal-kő;Mátra;787
Kis-kő;Mátra;787
Kis-kő-hát;Bükk-vidék;939
Kis-Sár-bérc;Bükk-vidék;925
Kis-Sas-kő;Mátra;830
Kis-tanya;Bükk-vidék;916
Kis-Virágos-hegy;Bükk-vidék;868
Korom-bérc;Börzsöny;825
Kőris-hegy;Bükk-vidék;944
Kőrös-bérc;Bükk-vidék;956
Köves-orom;Mátra;787
Közép-bérc (1);Bükk-vidék;807
Közép-bérc (2);Bükk-vidék;804
Kukocsó-hegy;Bükk-vidék;941
Kút-hegy;Mátra;878
Küllő-hegy;Bükk-vidék;899
Leány-hegy;Bükk-vidék;892
Legyendi-galya;Mátra;936
Magos-fa;Börzsöny;916
Messzelátó;Bükk-vidék;855
Mogyorós-orom;Mátra;838
Muzsla;Mátra;806
Nagy-Átal-kő;Mátra;823
Nagy-Csipkés-tető;Bükk-vidék;869
Nagy-Csipkés-tető (3);Bükk-vidék;843
Nagy-Dél (1);Bükk-vidék;821
Nagy-Dél (2);Bükk-vidék;799
Nagy-Dél (3);Bükk-vidék;787
Nagy-Hárs;Bükk-vidék;840
Nagy-Hideg-hegy;Börzsöny;864
Nagy-Inóc;Börzsöny;826
Nagy-Kopasz;Bükk-vidék;903
Nagy-kő-hát (1);Bükk-vidék;946
Nagy-kő-hát (2);Bükk-vidék;936
Nagy-Kőris;Bükk-vidék;822
Nagy-Milic;Zempléni-hegység;895
Nyárju-hegy (1);Bükk-vidék;889
Nyárju-hegy (2);Bükk-vidék;885
Nyesett-vár;Mátra;813
Őr-kő (2);Bükk-vidék;855
Őr-kő (1);Bükk-vidék;880
Pes-kő;Bükk-vidék;857
Péter hegyese;Mátra;960
Piszkés-tető;Mátra;944
Pogányvár;Börzsöny;823
Remete-hegy;Zempléni-hegység;894
Sándor-hegy;Bükk-vidék;870
Sas-kő;Mátra;898
Semmi-bérc;Bükk-vidék;906
Som-tető;Mátra;783
Szilvási-kő;Bükk-vidék;961
Tányéros-töbör;Bükk-vidék;958
Tar-kő;Bükk-vidék;950
Teréz-hegy;Mátra;792
Tót-hegyes;Mátra;814
Tölgyes-bérc;Mátra;799
Vadkert-tető;Mátra;834
Vargai-Kurta-bérc (1);Bükk-vidék;821
Vargai-Kurta-bérc (2);Bükk-vidék;819
Varsa-tető;Börzsöny;871
Veres-Sár-bérc;Bükk-vidék;912
Virágos-sár (2);Bükk-vidék;950
Virágos-Sár-hegy;Bükk-vidék;955
Zsérci-Nagy-Dél (1);Bükk-vidék;879
Zsérci-Nagy-Dél (2);Bükk-vidék;877
Zsérci-Nagy-Dél (3);Bükk-vidék;859
Zsérci-Nagy-Dél (4);Bükk-vidék;850

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

View File

@ -0,0 +1 @@
b6e6829fa35494b13dcc33ed034b3903ddf36ef4d4148df0d76a8508d97f740a

View File

@ -0,0 +1,10 @@
E:\Házi\Programozás\C#\Suli\ProgaOra\20240906\GyakorlásGUI\HegyekMO_GUI\obj\Debug\HegyekMO_GUI.csproj.AssemblyReference.cache
E:\Házi\Programozás\C#\Suli\ProgaOra\20240906\GyakorlásGUI\HegyekMO_GUI\obj\Debug\HegyekMO_GUI.Form1.resources
E:\Házi\Programozás\C#\Suli\ProgaOra\20240906\GyakorlásGUI\HegyekMO_GUI\obj\Debug\HegyekMO_GUI.Properties.Resources.resources
E:\Házi\Programozás\C#\Suli\ProgaOra\20240906\GyakorlásGUI\HegyekMO_GUI\obj\Debug\HegyekMO_GUI.csproj.GenerateResource.cache
E:\Házi\Programozás\C#\Suli\ProgaOra\20240906\GyakorlásGUI\HegyekMO_GUI\obj\Debug\HegyekMO_GUI.csproj.CoreCompileInputs.cache
E:\Házi\Programozás\C#\Suli\ProgaOra\20240906\GyakorlásGUI\HegyekMO_GUI\bin\Debug\HegyekMO_GUI.exe.config
E:\Házi\Programozás\C#\Suli\ProgaOra\20240906\GyakorlásGUI\HegyekMO_GUI\bin\Debug\HegyekMO_GUI.exe
E:\Házi\Programozás\C#\Suli\ProgaOra\20240906\GyakorlásGUI\HegyekMO_GUI\bin\Debug\HegyekMO_GUI.pdb
E:\Házi\Programozás\C#\Suli\ProgaOra\20240906\GyakorlásGUI\HegyekMO_GUI\obj\Debug\HegyekMO_GUI.exe
E:\Házi\Programozás\C#\Suli\ProgaOra\20240906\GyakorlásGUI\HegyekMO_GUI\obj\Debug\HegyekMO_GUI.pdb