diff --git a/20240527/Dolgozat/Dolgozat.pdf b/20240527/Dolgozat/Dolgozat.pdf new file mode 100644 index 0000000..bc65db4 Binary files /dev/null and b/20240527/Dolgozat/Dolgozat.pdf differ diff --git a/20240527/Dolgozat/oscar.csv b/20240527/Dolgozat/oscar.csv new file mode 100644 index 0000000..8069340 --- /dev/null +++ b/20240527/Dolgozat/oscar.csv @@ -0,0 +1,181 @@ +azon;cim;ev;dij;jelol +Ark81;Raiders of the Lost Ark;1981;4;8 +Day91;Terminator 2: Judgment Day;1991;4;6 +End92;Howards End;1992;3;9 +Kid69;Butch Cassidy and the Sundance Kid;1969;4;7 +Man88;Rain Man;1988;4;8 +Men07;No Country for Old Men;2007;4;8 +Men49;All the King's Men;1949;3;7 +Men76;All the President's Men;1976;4;8 +War02;The Fog of War;2002;6;13 +Way44;Going My Way;1944;7;10 +Won63;How the West Was Won;1963;3;8 +abia62;Lawrence of Arabia;1962;7;10 +acus60;Spartacus;1960;4;6 +adre48;The Treasure of the Sierra Madre;1948;3;4 +agon00;Crouching Tiger, Hidden Dragon;2000;4;10 +aire08;Slumdog Millionaire;2008;8;10 +aisy89;Driving Miss Daisy;1989;4;9 +ambs91;The Silence of the Lambs;1991;5;7 +amer79;Kramer vs. Kramer;1979;5;9 +anca43;Casablanca;1943;3;8 +andy42;Yankee Doodle Dandy;1942;3;8 +anic97;Titanic;1997;11;14 +aret72;Cabaret;1972;8;10 +Argo12;Argo;2012;3;7 +aris51;An American in Paris;1951;6;8 +arty55;Marty;1955;4;8 +atar09;Avatar;2009;3;9 +ator00;Gladiator;2000;5;12 +ator04;The Aviator;2004;5;11 +atra63;Cleopatra;1963;4;9 +atum07;The Bourne Ultimatum;2007;3;3 +auty99;American Beauty;1999;5;8 +aven27;7th Heaven;1927;3;5 +Baby04;Million Dollar Baby;2004;4;7 +bbit88;Who Framed Roger Rabbit;1988;3;6 +bird62;To Kill a Mockingbird;1962;3;8 +bles12;Les Mis‚rables;2012;3;8 +cade33;Cavalcade;1933;3;4 +cago02;Chicago;2002;6;13 +cker09;The Hurt Locker;2009;6;9 +Club13;Dallas Buyers Club;2013;3;6 +cula92;Bram Stoker's Dracula;1992;3;4 +Days56;Around the World in Eighty Days;1956;5;8 +der 83;Fanny & Alexander ;1983;4;6 +deus84;Amadeus;1984;8;11 +dman14;Birdman;2014;4;9 +eart95;Braveheart;1995;5;10 +eech10;The King's Speech;2010;4;12 +elds84;The Killing Fields;1984;3;7 +elot67;Camelot;1967;3;5 +erno74;The Towering Inferno;1974;3;8 +eror87;The Last Emperor;1987;9;9 +erse36;Anthony Adverse;1936;4;7 +ette43;The Song of Bernadette;1943;4;12 +Eve50;All About Eve;1950;6;14 +f Pi12;Life of Pi;2012;4;11 +feld36;The Great Ziegfeld;1936;3;7 +ffic00;Traffic;2000;4;5 +Fire81;Chariots of Fire;1981;4;7 +ful 98;Life Is Beautiful ;1998;3;7 +gdad40;The Thief of Bagdad;1940;3;4 +Gigi58;Gigi;1958;9;9 +Gump94;Forrest Gump;1994;6;13 +Hall77;Annie Hall;1977;4;5 +hing55;Love Is a Many-Splendored Thing;1955;3;8 +Home78;Coming Home;1978;3;8 +Hood38;The Adventures of Robin Hood;1938;3;4 +Hud63;Hud;1963;3;7 +Hugo11;Hugo;2011;5;11 +Hur59;Ben-Hur;1959;11;12 +iano93;The Piano;1993;3;8 +iday53;Roman Holiday;1953;3;10 +ient96;The English Patient;1996;9;12 +iful52;The Bad and the Beautiful;1952;5;6 +ight16;Moonlight;2016;3;8 +ight34;It Happened One Night;1934;5;5 +ight67;In the Heat of the Night;1967;5;7 +inth06;Pan's Labyrinth;2006;3;6 +isha05;Memoirs of a Geisha;2005;3;6 +iven92;Unforgiven;1992;4;9 +iver42;Mrs. Miniver;1942;6;12 +ives46;The Best Years of Our Lives;1946;7;8 +Jaws75;Jaws;1975;3;4 +Jazz79;All That Jazz;1979;4;9 +kend45;The Lost Weekend;1945;4;7 +King03;The Lord of the Rings: The Return of the King;2003;11;11 +Kong05;King Kong;2005;3;4 +Kwai57;The Bridge on the River Kwai;1957;7;8 +Lady64;My Fair Lady;1964;8;12 +Land16;La La Land;2016;6;14 +lash14;Whiplash;2014;3;5 +lave13;12 Years a Slave;2013;3;9 +ling65;Darling;1965;3;5 +List93;Schindler's List;1993;7;12 +lley41;How Green Was My Valley;1941;5;10 +lory89;Glory;1989;3;5 +Love98;Shakespeare in Love;1998;7;13 +lson44;Wilson;1944;5;10 +lves90;Dances with Wolves;1990;7;12 +lly!69;Hello, Dolly!;1969;3;7 +ment47;Gentleman's Agreement;1947;3;8 +ment60;The Apartment;1960;5;10 +ment83;Terms of Endearment;1983;5;11 +Mind01;A Beautiful Mind;2001;4;8 +mlet48;Hamlet;1948;4;7 +nant15;The Revenant;2015;3;12 +nara57;Sayonara;1957;4;10 +nd I56;The King and I;1956;5;9 +ndhi82;Gandhi;1982;8;11 +ndon75;Barry Lyndon;1975;4;7 +Nest75;One Flew over the Cuckoo's Nest;1975;5;9 +nist02;The Pianist;2002;3;7 +nity53;From Here to Eternity;1953;8;13 +Noon52;High Noon;1952;4;7 +nter68;The Lion in Winter;1968;3;7 +nter78;The Deer Hunter;1978;5;9 +ntry60;Elmer Gantry;1960;3;5 +ocky76;Rocky;1976;3;10 +olf?66;Who's Afraid of Virginia Woolf?;1966;5;13 +ones63;Tom Jones;1963;4;10 +ople80;Ordinary People;1980;4;6 +otel14;The Grand Budapest Hotel;2014;4;9 +Park93;Jurassic Park;1993;3;3 +pins64;Mary Poppins;1964;5;13 +Pond81;On Golden Pond;1981;3;10 +Prix66;Grand Prix;1966;3;3 +racy90;Dick Tracy;1990;3;7 +rank59;The Diary of Anne Frank;1959;3;8 +rash05;Crash;2005;3;6 +Reds81;Reds;1981;3;12 +reek64;Zorba the Greek;1964;3;7 +reet47;Miracle on 34th Street;1947;3;4 +ress49;The Heiress;1949;4;8 +rial82;E.T.: The Extra-Terrestrial;1982;4;9 +rica85;Out of Africa;1985;7;11 +Ring01;The Lord of the Rings: The Fellowship of the Ring;2001;4;13 +rise27;Sunrise;1927;3;4 +rmer35;The Informer;1935;4;6 +Road15;Mad Max: Fury Road;2015;6;10 +ront54;On the Waterfront;1954;8;12 +Roof71;Fiddler on the Roof;1971;3;8 +rron31;Cimarron;1931;3;7 +rted06;The Departed;2006;4;5 +ruck87;Moonstruck;1987;3;6 +Ryan98;Saving Private Ryan;1998;5;11 +sire51;A Streetcar Named Desire;1951;4;12 +sons66;A Man for All Seasons;1966;6;8 +sons88;Dangerous Liaisons;1988;3;7 +Sun51;A Place in the Sun;1951;6;9 +t II74;The Godfather Part II;1974;6;11 +tain05;Brokeback Mountain;2005;3;8 +ters86;Hannah and Her Sisters;1986;3;7 +Tess80;Tess;1980;3;6 +teur36;The Story of Louis Pasteur;1936;3;4 +ther72;The Godfather;1972;3;10 +ting73;The Sting;1973;7;10 +tion10;Inception;2010;4;8 +tion71;The French Connection;1971;5;8 +tist11;The Artist;2011;5;10 +toon86;Platoon;1986;4;8 +tory61;West Side Story;1961;10;11 +trix99;The Matrix;1999;4;4 +tton08;The Curious Case of Benjamin Button;2008;3;13 +tton70;Patton;1970;7;10 +ttoo55;The Rose Tattoo;1955;3;8 +tuff83;The Right Stuff;1983;4;8 +ulia77;Julia;1977;3;11 +usic65;The Sound of Music;1965;5;10 +vago65;Doctor Zhivago;1965;5;10 +vard50;Sunset Boulevard;1950;3;11 +ver!68;Oliver!;1968;5;11 +View86;A Room with a View;1986;3;8 +vity13;Gravity;2013;7;10 +Wars77;Star Wars;1977;6;10 +wboy69;Midnight Cowboy;1969;3;7 +Wind39;Gone with the Wind;1939;8;13 +work10;The Social Network;2010;3;8 +work76;Network;1976;4;10 +Zola37;The Life of Emile Zola;1937;3;10 +9699;Avatar;2020;5;5 diff --git a/20240527/WindowsFormsApp1/.vs/WindowsFormsApp1/v16/.suo b/20240527/WindowsFormsApp1/.vs/WindowsFormsApp1/v16/.suo new file mode 100644 index 0000000..229035b Binary files /dev/null and b/20240527/WindowsFormsApp1/.vs/WindowsFormsApp1/v16/.suo differ diff --git a/20240527/WindowsFormsApp1/WindowsFormsApp1.sln b/20240527/WindowsFormsApp1/WindowsFormsApp1.sln new file mode 100644 index 0000000..ca0b9a6 --- /dev/null +++ b/20240527/WindowsFormsApp1/WindowsFormsApp1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.34729.46 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsFormsApp1", "WindowsFormsApp1\WindowsFormsApp1.csproj", "{2D2DF893-A709-4F19-A835-BD6154F3EF8E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2D2DF893-A709-4F19-A835-BD6154F3EF8E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2D2DF893-A709-4F19-A835-BD6154F3EF8E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2D2DF893-A709-4F19-A835-BD6154F3EF8E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2D2DF893-A709-4F19-A835-BD6154F3EF8E}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {397597E6-8498-4570-AF67-05D82DEBFFD1} + EndGlobalSection +EndGlobal diff --git a/20240527/WindowsFormsApp1/WindowsFormsApp1/App.config b/20240527/WindowsFormsApp1/WindowsFormsApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20240527/WindowsFormsApp1/WindowsFormsApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20240527/WindowsFormsApp1/WindowsFormsApp1/Form1.Designer.cs b/20240527/WindowsFormsApp1/WindowsFormsApp1/Form1.Designer.cs new file mode 100644 index 0000000..676bfb4 --- /dev/null +++ b/20240527/WindowsFormsApp1/WindowsFormsApp1/Form1.Designer.cs @@ -0,0 +1,266 @@ + +namespace WindowsFormsApp1 +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.listBox1 = new System.Windows.Forms.ListBox(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.button1 = new System.Windows.Forms.Button(); + this.button2 = new System.Windows.Forms.Button(); + this.label6 = new System.Windows.Forms.Label(); + this.button3 = new System.Windows.Forms.Button(); + this.label7 = new System.Windows.Forms.Label(); + this.listBox2 = new System.Windows.Forms.ListBox(); + this.button4 = new System.Windows.Forms.Button(); + this.Cim = new System.Windows.Forms.TextBox(); + this.Ev = new System.Windows.Forms.TextBox(); + this.Jelolesek = new System.Windows.Forms.TextBox(); + this.Dijak = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.textBox6 = new System.Windows.Forms.TextBox(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(22, 23); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(91, 13); + this.label1.TabIndex = 0; + this.label1.Text = "Oscar-díjas filmek"; + this.label1.Click += new System.EventHandler(this.label1_Click); + // + // listBox1 + // + this.listBox1.FormattingEnabled = true; + this.listBox1.Location = new System.Drawing.Point(12, 57); + this.listBox1.Name = "listBox1"; + this.listBox1.Size = new System.Drawing.Size(198, 368); + this.listBox1.TabIndex = 1; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(283, 23); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(32, 13); + this.label2.TabIndex = 2; + this.label2.Text = "Címe"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(283, 66); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(20, 13); + this.label3.TabIndex = 3; + this.label3.Text = "Év"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(283, 103); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(92, 13); + this.label4.TabIndex = 4; + this.label4.Text = "Jelölésekm száma"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(283, 146); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(66, 13); + this.label5.TabIndex = 5; + this.label5.Text = "Díjak száma"; + // + // button1 + // + this.button1.Location = new System.Drawing.Point(286, 190); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(261, 33); + this.button1.TabIndex = 6; + this.button1.Text = "Új film felvétele"; + this.button1.UseVisualStyleBackColor = true; + // + // button2 + // + this.button2.Location = new System.Drawing.Point(435, 246); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(112, 33); + this.button2.TabIndex = 7; + this.button2.Text = "Legtöbb díjat kapta"; + this.button2.UseVisualStyleBackColor = true; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(283, 256); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(55, 13); + this.label6.TabIndex = 8; + this.label6.Text = "Film címe:"; + // + // button3 + // + this.button3.Location = new System.Drawing.Point(469, 303); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(56, 22); + this.button3.TabIndex = 9; + this.button3.Text = "keres"; + this.button3.UseVisualStyleBackColor = true; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(283, 357); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(74, 13); + this.label7.TabIndex = 10; + this.label7.Text = "Találat kiírása"; + // + // listBox2 + // + this.listBox2.FormattingEnabled = true; + this.listBox2.Location = new System.Drawing.Point(590, 57); + this.listBox2.Name = "listBox2"; + this.listBox2.Size = new System.Drawing.Size(198, 329); + this.listBox2.TabIndex = 11; + // + // button4 + // + this.button4.Location = new System.Drawing.Point(629, 392); + this.button4.Name = "button4"; + this.button4.Size = new System.Drawing.Size(56, 22); + this.button4.TabIndex = 12; + this.button4.Text = "listázz"; + this.button4.UseVisualStyleBackColor = true; + // + // Cim + // + this.Cim.Location = new System.Drawing.Point(388, 15); + this.Cim.Name = "Cim"; + this.Cim.Size = new System.Drawing.Size(159, 20); + this.Cim.TabIndex = 13; + // + // Ev + // + this.Ev.Location = new System.Drawing.Point(388, 57); + this.Ev.Name = "Ev"; + this.Ev.Size = new System.Drawing.Size(159, 20); + this.Ev.TabIndex = 14; + // + // Jelolesek + // + this.Jelolesek.Location = new System.Drawing.Point(388, 100); + this.Jelolesek.Name = "Jelolesek"; + this.Jelolesek.Size = new System.Drawing.Size(159, 20); + this.Jelolesek.TabIndex = 15; + // + // Dijak + // + this.Dijak.Location = new System.Drawing.Point(388, 146); + this.Dijak.Name = "Dijak"; + this.Dijak.Size = new System.Drawing.Size(159, 20); + this.Dijak.TabIndex = 16; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(286, 303); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(159, 20); + this.textBox5.TabIndex = 17; + // + // textBox6 + // + this.textBox6.Location = new System.Drawing.Point(590, 12); + this.textBox6.Name = "textBox6"; + this.textBox6.Size = new System.Drawing.Size(198, 20); + this.textBox6.TabIndex = 18; + // + // 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.textBox6); + this.Controls.Add(this.textBox5); + this.Controls.Add(this.Dijak); + this.Controls.Add(this.Jelolesek); + this.Controls.Add(this.Ev); + this.Controls.Add(this.Cim); + this.Controls.Add(this.button4); + this.Controls.Add(this.listBox2); + this.Controls.Add(this.label7); + this.Controls.Add(this.button3); + this.Controls.Add(this.label6); + this.Controls.Add(this.button2); + this.Controls.Add(this.button1); + this.Controls.Add(this.label5); + this.Controls.Add(this.label4); + this.Controls.Add(this.label3); + this.Controls.Add(this.label2); + this.Controls.Add(this.listBox1); + this.Controls.Add(this.label1); + this.Name = "Form1"; + this.Text = "Form1"; + this.Load += new System.EventHandler(this.Form1_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.ListBox listBox1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Button button2; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Button button3; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.ListBox listBox2; + private System.Windows.Forms.Button button4; + private System.Windows.Forms.TextBox Cim; + private System.Windows.Forms.TextBox Ev; + private System.Windows.Forms.TextBox Jelolesek; + private System.Windows.Forms.TextBox Dijak; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.TextBox textBox6; + } +} + diff --git a/20240527/WindowsFormsApp1/WindowsFormsApp1/Form1.cs b/20240527/WindowsFormsApp1/WindowsFormsApp1/Form1.cs new file mode 100644 index 0000000..785a086 --- /dev/null +++ b/20240527/WindowsFormsApp1/WindowsFormsApp1/Form1.cs @@ -0,0 +1,76 @@ +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; +using System.IO; + +namespace WindowsFormsApp1 +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private void label1_Click(object sender, EventArgs e) + { + + } + + private void Form1_Load(object sender, EventArgs e) + { + FileStream fileStream = new FileStream("oscar.csv", FileMode.Open, FileAccess.Read); + StreamReader streamReader = new StreamReader(fileStream); + + string line = streamReader.ReadLine(); + line = streamReader.ReadLine(); + + while (line != null) + { + string[] content = line.Split(';'); + + Film film = new Film(content[0], content[1], Convert.ToInt32(content[2]), Convert.ToInt32(content[3]), Convert.ToInt32(content[4])); + + Data.films.Add(film); + + + } + + streamReader.Close(); + fileStream.Close(); + } + + + } + + public static class Data + { + public static List films = new List(); + public static List filmnames = new List(); + + } + + public class Film + { + public string azonosito; + public string cim; + public int ev; + public int dij; + public int jelolt; + + public Film(string azonosito, string cim, int ev, int dij, int jelolt) + { + this.azonosito = azonosito; + this.cim = cim; + this.ev = ev; + this.dij = dij; + this.jelolt = jelolt; + } + } +} diff --git a/20240527/WindowsFormsApp1/WindowsFormsApp1/Form1.resx b/20240527/WindowsFormsApp1/WindowsFormsApp1/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/20240527/WindowsFormsApp1/WindowsFormsApp1/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/20240527/WindowsFormsApp1/WindowsFormsApp1/Program.cs b/20240527/WindowsFormsApp1/WindowsFormsApp1/Program.cs new file mode 100644 index 0000000..30a0128 --- /dev/null +++ b/20240527/WindowsFormsApp1/WindowsFormsApp1/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace WindowsFormsApp1 +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/20240527/WindowsFormsApp1/WindowsFormsApp1/Properties/AssemblyInfo.cs b/20240527/WindowsFormsApp1/WindowsFormsApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..37b6aca --- /dev/null +++ b/20240527/WindowsFormsApp1/WindowsFormsApp1/Properties/AssemblyInfo.cs @@ -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("WindowsFormsApp1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("WindowsFormsApp1")] +[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("2d2df893-a709-4f19-a835-bd6154f3ef8e")] + +// 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")] diff --git a/20240527/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.Designer.cs b/20240527/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.Designer.cs new file mode 100644 index 0000000..2b9cd9f --- /dev/null +++ b/20240527/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.Designer.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + + +namespace WindowsFormsApp1.Properties +{ + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // 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() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [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("WindowsFormsApp1.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/20240527/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.resx b/20240527/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/20240527/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/20240527/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.Designer.cs b/20240527/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.Designer.cs new file mode 100644 index 0000000..3cdaf80 --- /dev/null +++ b/20240527/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.Designer.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + + +namespace WindowsFormsApp1.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; + } + } + } +} diff --git a/20240527/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.settings b/20240527/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/20240527/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/20240527/WindowsFormsApp1/WindowsFormsApp1/WindowsFormsApp1.csproj b/20240527/WindowsFormsApp1/WindowsFormsApp1/WindowsFormsApp1.csproj new file mode 100644 index 0000000..cb51e10 --- /dev/null +++ b/20240527/WindowsFormsApp1/WindowsFormsApp1/WindowsFormsApp1.csproj @@ -0,0 +1,80 @@ + + + + + Debug + AnyCPU + {2D2DF893-A709-4F19-A835-BD6154F3EF8E} + WinExe + WindowsFormsApp1 + WindowsFormsApp1 + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/20240527/WindowsFormsApp1/WindowsFormsApp1/bin/Debug/oscar.csv b/20240527/WindowsFormsApp1/WindowsFormsApp1/bin/Debug/oscar.csv new file mode 100644 index 0000000..8069340 --- /dev/null +++ b/20240527/WindowsFormsApp1/WindowsFormsApp1/bin/Debug/oscar.csv @@ -0,0 +1,181 @@ +azon;cim;ev;dij;jelol +Ark81;Raiders of the Lost Ark;1981;4;8 +Day91;Terminator 2: Judgment Day;1991;4;6 +End92;Howards End;1992;3;9 +Kid69;Butch Cassidy and the Sundance Kid;1969;4;7 +Man88;Rain Man;1988;4;8 +Men07;No Country for Old Men;2007;4;8 +Men49;All the King's Men;1949;3;7 +Men76;All the President's Men;1976;4;8 +War02;The Fog of War;2002;6;13 +Way44;Going My Way;1944;7;10 +Won63;How the West Was Won;1963;3;8 +abia62;Lawrence of Arabia;1962;7;10 +acus60;Spartacus;1960;4;6 +adre48;The Treasure of the Sierra Madre;1948;3;4 +agon00;Crouching Tiger, Hidden Dragon;2000;4;10 +aire08;Slumdog Millionaire;2008;8;10 +aisy89;Driving Miss Daisy;1989;4;9 +ambs91;The Silence of the Lambs;1991;5;7 +amer79;Kramer vs. Kramer;1979;5;9 +anca43;Casablanca;1943;3;8 +andy42;Yankee Doodle Dandy;1942;3;8 +anic97;Titanic;1997;11;14 +aret72;Cabaret;1972;8;10 +Argo12;Argo;2012;3;7 +aris51;An American in Paris;1951;6;8 +arty55;Marty;1955;4;8 +atar09;Avatar;2009;3;9 +ator00;Gladiator;2000;5;12 +ator04;The Aviator;2004;5;11 +atra63;Cleopatra;1963;4;9 +atum07;The Bourne Ultimatum;2007;3;3 +auty99;American Beauty;1999;5;8 +aven27;7th Heaven;1927;3;5 +Baby04;Million Dollar Baby;2004;4;7 +bbit88;Who Framed Roger Rabbit;1988;3;6 +bird62;To Kill a Mockingbird;1962;3;8 +bles12;Les Mis‚rables;2012;3;8 +cade33;Cavalcade;1933;3;4 +cago02;Chicago;2002;6;13 +cker09;The Hurt Locker;2009;6;9 +Club13;Dallas Buyers Club;2013;3;6 +cula92;Bram Stoker's Dracula;1992;3;4 +Days56;Around the World in Eighty Days;1956;5;8 +der 83;Fanny & Alexander ;1983;4;6 +deus84;Amadeus;1984;8;11 +dman14;Birdman;2014;4;9 +eart95;Braveheart;1995;5;10 +eech10;The King's Speech;2010;4;12 +elds84;The Killing Fields;1984;3;7 +elot67;Camelot;1967;3;5 +erno74;The Towering Inferno;1974;3;8 +eror87;The Last Emperor;1987;9;9 +erse36;Anthony Adverse;1936;4;7 +ette43;The Song of Bernadette;1943;4;12 +Eve50;All About Eve;1950;6;14 +f Pi12;Life of Pi;2012;4;11 +feld36;The Great Ziegfeld;1936;3;7 +ffic00;Traffic;2000;4;5 +Fire81;Chariots of Fire;1981;4;7 +ful 98;Life Is Beautiful ;1998;3;7 +gdad40;The Thief of Bagdad;1940;3;4 +Gigi58;Gigi;1958;9;9 +Gump94;Forrest Gump;1994;6;13 +Hall77;Annie Hall;1977;4;5 +hing55;Love Is a Many-Splendored Thing;1955;3;8 +Home78;Coming Home;1978;3;8 +Hood38;The Adventures of Robin Hood;1938;3;4 +Hud63;Hud;1963;3;7 +Hugo11;Hugo;2011;5;11 +Hur59;Ben-Hur;1959;11;12 +iano93;The Piano;1993;3;8 +iday53;Roman Holiday;1953;3;10 +ient96;The English Patient;1996;9;12 +iful52;The Bad and the Beautiful;1952;5;6 +ight16;Moonlight;2016;3;8 +ight34;It Happened One Night;1934;5;5 +ight67;In the Heat of the Night;1967;5;7 +inth06;Pan's Labyrinth;2006;3;6 +isha05;Memoirs of a Geisha;2005;3;6 +iven92;Unforgiven;1992;4;9 +iver42;Mrs. Miniver;1942;6;12 +ives46;The Best Years of Our Lives;1946;7;8 +Jaws75;Jaws;1975;3;4 +Jazz79;All That Jazz;1979;4;9 +kend45;The Lost Weekend;1945;4;7 +King03;The Lord of the Rings: The Return of the King;2003;11;11 +Kong05;King Kong;2005;3;4 +Kwai57;The Bridge on the River Kwai;1957;7;8 +Lady64;My Fair Lady;1964;8;12 +Land16;La La Land;2016;6;14 +lash14;Whiplash;2014;3;5 +lave13;12 Years a Slave;2013;3;9 +ling65;Darling;1965;3;5 +List93;Schindler's List;1993;7;12 +lley41;How Green Was My Valley;1941;5;10 +lory89;Glory;1989;3;5 +Love98;Shakespeare in Love;1998;7;13 +lson44;Wilson;1944;5;10 +lves90;Dances with Wolves;1990;7;12 +lly!69;Hello, Dolly!;1969;3;7 +ment47;Gentleman's Agreement;1947;3;8 +ment60;The Apartment;1960;5;10 +ment83;Terms of Endearment;1983;5;11 +Mind01;A Beautiful Mind;2001;4;8 +mlet48;Hamlet;1948;4;7 +nant15;The Revenant;2015;3;12 +nara57;Sayonara;1957;4;10 +nd I56;The King and I;1956;5;9 +ndhi82;Gandhi;1982;8;11 +ndon75;Barry Lyndon;1975;4;7 +Nest75;One Flew over the Cuckoo's Nest;1975;5;9 +nist02;The Pianist;2002;3;7 +nity53;From Here to Eternity;1953;8;13 +Noon52;High Noon;1952;4;7 +nter68;The Lion in Winter;1968;3;7 +nter78;The Deer Hunter;1978;5;9 +ntry60;Elmer Gantry;1960;3;5 +ocky76;Rocky;1976;3;10 +olf?66;Who's Afraid of Virginia Woolf?;1966;5;13 +ones63;Tom Jones;1963;4;10 +ople80;Ordinary People;1980;4;6 +otel14;The Grand Budapest Hotel;2014;4;9 +Park93;Jurassic Park;1993;3;3 +pins64;Mary Poppins;1964;5;13 +Pond81;On Golden Pond;1981;3;10 +Prix66;Grand Prix;1966;3;3 +racy90;Dick Tracy;1990;3;7 +rank59;The Diary of Anne Frank;1959;3;8 +rash05;Crash;2005;3;6 +Reds81;Reds;1981;3;12 +reek64;Zorba the Greek;1964;3;7 +reet47;Miracle on 34th Street;1947;3;4 +ress49;The Heiress;1949;4;8 +rial82;E.T.: The Extra-Terrestrial;1982;4;9 +rica85;Out of Africa;1985;7;11 +Ring01;The Lord of the Rings: The Fellowship of the Ring;2001;4;13 +rise27;Sunrise;1927;3;4 +rmer35;The Informer;1935;4;6 +Road15;Mad Max: Fury Road;2015;6;10 +ront54;On the Waterfront;1954;8;12 +Roof71;Fiddler on the Roof;1971;3;8 +rron31;Cimarron;1931;3;7 +rted06;The Departed;2006;4;5 +ruck87;Moonstruck;1987;3;6 +Ryan98;Saving Private Ryan;1998;5;11 +sire51;A Streetcar Named Desire;1951;4;12 +sons66;A Man for All Seasons;1966;6;8 +sons88;Dangerous Liaisons;1988;3;7 +Sun51;A Place in the Sun;1951;6;9 +t II74;The Godfather Part II;1974;6;11 +tain05;Brokeback Mountain;2005;3;8 +ters86;Hannah and Her Sisters;1986;3;7 +Tess80;Tess;1980;3;6 +teur36;The Story of Louis Pasteur;1936;3;4 +ther72;The Godfather;1972;3;10 +ting73;The Sting;1973;7;10 +tion10;Inception;2010;4;8 +tion71;The French Connection;1971;5;8 +tist11;The Artist;2011;5;10 +toon86;Platoon;1986;4;8 +tory61;West Side Story;1961;10;11 +trix99;The Matrix;1999;4;4 +tton08;The Curious Case of Benjamin Button;2008;3;13 +tton70;Patton;1970;7;10 +ttoo55;The Rose Tattoo;1955;3;8 +tuff83;The Right Stuff;1983;4;8 +ulia77;Julia;1977;3;11 +usic65;The Sound of Music;1965;5;10 +vago65;Doctor Zhivago;1965;5;10 +vard50;Sunset Boulevard;1950;3;11 +ver!68;Oliver!;1968;5;11 +View86;A Room with a View;1986;3;8 +vity13;Gravity;2013;7;10 +Wars77;Star Wars;1977;6;10 +wboy69;Midnight Cowboy;1969;3;7 +Wind39;Gone with the Wind;1939;8;13 +work10;The Social Network;2010;3;8 +work76;Network;1976;4;10 +Zola37;The Life of Emile Zola;1937;3;10 +9699;Avatar;2020;5;5 diff --git a/20240527/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20240527/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20240527/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/20240527/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/20240527/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..a6920de Binary files /dev/null and b/20240527/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/20240527/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20240527/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..edb9454 Binary files /dev/null and b/20240527/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20240527/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.AssemblyReference.cache b/20240527/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f5e894a Binary files /dev/null and b/20240527/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.AssemblyReference.cache differ