diff --git a/.gitignore b/.gitignore
index 6acf205..715adb6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,13 +1,354 @@
-################################################################################
-# Ten plik .gitignore został utworzony automatycznie przez Microsoft(R) Visual Studio.
-################################################################################
-
-/.vs
-/Lesson0/.vs/Lesson0/v15
-/Lesson0/Lesson0/obj
-/Lesson0/Lesson0/bin/Debug/netcoreapp2.0
-/Lesson1/.vs/Lesson1/v15
-/Lesson1/Lesson1/obj
-/Lesson1/Lesson1/bin/Debug/netcoreapp2.0
-/Lesson2/.vs/Lesson2/v15
-/Lesson2/Lesson2/obj
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+##
+## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
+
+# User-specific files
+*.rsuser
+*.suo
+*.user
+*.userosscache
+*.sln.docstates
+
+# User-specific files (MonoDevelop/Xamarin Studio)
+*.userprefs
+
+# Mono auto generated files
+mono_crash.*
+
+# Build results
+[Dd]ebug/
+[Dd]ebugPublic/
+[Rr]elease/
+[Rr]eleases/
+x64/
+x86/
+[Aa][Rr][Mm]/
+[Aa][Rr][Mm]64/
+bld/
+[Bb]in/
+[Oo]bj/
+[Ll]og/
+[Ll]ogs/
+
+# Visual Studio 2015/2017 cache/options directory
+.vs/
+# Uncomment if you have tasks that create the project's static files in wwwroot
+#wwwroot/
+
+# Visual Studio 2017 auto generated files
+Generated\ Files/
+
+# MSTest test Results
+[Tt]est[Rr]esult*/
+[Bb]uild[Ll]og.*
+
+# NUnit
+*.VisualState.xml
+TestResult.xml
+nunit-*.xml
+
+# Build Results of an ATL Project
+[Dd]ebugPS/
+[Rr]eleasePS/
+dlldata.c
+
+# Benchmark Results
+BenchmarkDotNet.Artifacts/
+
+# .NET Core
+project.lock.json
+project.fragment.lock.json
+artifacts/
+
+# StyleCop
+StyleCopReport.xml
+
+# Files built by Visual Studio
+*_i.c
+*_p.c
+*_h.h
+*.ilk
+*.meta
+*.obj
+*.iobj
+*.pch
+*.pdb
+*.ipdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.tmp_proj
+*_wpftmp.csproj
+*.log
+*.vspscc
+*.vssscc
+.builds
+*.pidb
+*.svclog
+*.scc
+
+# Chutzpah Test files
+_Chutzpah*
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opendb
+*.opensdf
+*.sdf
+*.cachefile
+*.VC.db
+*.VC.VC.opendb
+
+# Visual Studio profiler
+*.psess
+*.vsp
+*.vspx
+*.sap
+
+# Visual Studio Trace Files
+*.e2e
+
+# TFS 2012 Local Workspace
+$tf/
+
+# Guidance Automation Toolkit
+*.gpState
+
+# ReSharper is a .NET coding add-in
+_ReSharper*/
+*.[Rr]e[Ss]harper
+*.DotSettings.user
+
+# TeamCity is a build add-in
+_TeamCity*
+
+# DotCover is a Code Coverage Tool
+*.dotCover
+
+# AxoCover is a Code Coverage Tool
+.axoCover/*
+!.axoCover/settings.json
+
+# Coverlet is a free, cross platform Code Coverage Tool
+coverage*[.json, .xml, .info]
+
+# Visual Studio code coverage results
+*.coverage
+*.coveragexml
+
+# NCrunch
+_NCrunch_*
+.*crunch*.local.xml
+nCrunchTemp_*
+
+# MightyMoose
+*.mm.*
+AutoTest.Net/
+
+# Web workbench (sass)
+.sass-cache/
+
+# Installshield output folder
+[Ee]xpress/
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish/
+
+# Publish Web Output
+*.[Pp]ublish.xml
+*.azurePubxml
+# Note: Comment the next line if you want to checkin your web deploy settings,
+# but database connection strings (with potential passwords) will be unencrypted
+*.pubxml
+*.publishproj
+
+# Microsoft Azure Web App publish settings. Comment the next line if you want to
+# checkin your Azure Web App publish settings, but sensitive information contained
+# in these scripts will be unencrypted
+PublishScripts/
+
+# NuGet Packages
+*.nupkg
+# NuGet Symbol Packages
+*.snupkg
+# The packages folder can be ignored because of Package Restore
+**/[Pp]ackages/*
+# except build/, which is used as an MSBuild target.
+!**/[Pp]ackages/build/
+# Uncomment if necessary however generally it will be regenerated when needed
+#!**/[Pp]ackages/repositories.config
+# NuGet v3's project.json files produces more ignorable files
+*.nuget.props
+*.nuget.targets
+
+# Microsoft Azure Build Output
+csx/
+*.build.csdef
+
+# Microsoft Azure Emulator
+ecf/
+rcf/
+
+# Windows Store app package directories and files
+AppPackages/
+BundleArtifacts/
+Package.StoreAssociation.xml
+_pkginfo.txt
+*.appx
+*.appxbundle
+*.appxupload
+
+# Visual Studio cache files
+# files ending in .cache can be ignored
+*.[Cc]ache
+# but keep track of directories ending in .cache
+!?*.[Cc]ache/
+
+# Others
+ClientBin/
+~$*
+*~
+*.dbmdl
+*.dbproj.schemaview
+*.jfm
+*.pfx
+*.publishsettings
+orleans.codegen.cs
+
+# Including strong name files can present a security risk
+# (https://github.com/github/gitignore/pull/2483#issue-259490424)
+#*.snk
+
+# Since there are multiple workflows, uncomment next line to ignore bower_components
+# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
+#bower_components/
+
+# RIA/Silverlight projects
+Generated_Code/
+
+# Backup & report files from converting an old project file
+# to a newer Visual Studio version. Backup files are not needed,
+# because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+UpgradeLog*.htm
+ServiceFabricBackup/
+*.rptproj.bak
+
+# SQL Server files
+*.mdf
+*.ldf
+*.ndf
+
+# Business Intelligence projects
+*.rdl.data
+*.bim.layout
+*.bim_*.settings
+*.rptproj.rsuser
+*- [Bb]ackup.rdl
+*- [Bb]ackup ([0-9]).rdl
+*- [Bb]ackup ([0-9][0-9]).rdl
+
+# Microsoft Fakes
+FakesAssemblies/
+
+# GhostDoc plugin setting file
+*.GhostDoc.xml
+
+# Node.js Tools for Visual Studio
+.ntvs_analysis.dat
+node_modules/
+
+# Visual Studio 6 build log
+*.plg
+
+# Visual Studio 6 workspace options file
+*.opt
+
+# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
+*.vbw
+
+# Visual Studio LightSwitch build output
+**/*.HTMLClient/GeneratedArtifacts
+**/*.DesktopClient/GeneratedArtifacts
+**/*.DesktopClient/ModelManifest.xml
+**/*.Server/GeneratedArtifacts
+**/*.Server/ModelManifest.xml
+_Pvt_Extensions
+
+# Paket dependency manager
+.paket/paket.exe
+paket-files/
+
+# FAKE - F# Make
+.fake/
+
+# CodeRush personal settings
+.cr/personal
+
+# Python Tools for Visual Studio (PTVS)
+__pycache__/
+*.pyc
+
+# Cake - Uncomment if you are using it
+# tools/**
+# !tools/packages.config
+
+# Tabs Studio
+*.tss
+
+# Telerik's JustMock configuration file
+*.jmconfig
+
+# BizTalk build output
+*.btp.cs
+*.btm.cs
+*.odx.cs
+*.xsd.cs
+
+# OpenCover UI analysis results
+OpenCover/
+
+# Azure Stream Analytics local run output
+ASALocalRun/
+
+# MSBuild Binary and Structured Log
+*.binlog
+
+# NVidia Nsight GPU debugger configuration file
+*.nvuser
+
+# MFractors (Xamarin productivity tool) working folder
+.mfractor/
+
+# Local History for Visual Studio
+.localhistory/
+
+# BeatPulse healthcheck temp database
+healthchecksdb
+
+# Backup folder for Package Reference Convert tool in Visual Studio 2017
+MigrationBackup/
+
+# Ionide (cross platform F# VS Code tools) working folder
+.ionide/
+
diff --git a/Kolokwium/Kolokwium01-150900.sln b/Kolokwium/Kolokwium01-150900.sln
new file mode 100644
index 0000000..0374c61
--- /dev/null
+++ b/Kolokwium/Kolokwium01-150900.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+VisualStudioVersion = 15.0.28010.2036
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kolokwium01-150900", "Kolokwium01-150900\Kolokwium01-150900.csproj", "{972A1A0D-9F58-4BE0-9B06-1E1E5EF3A2DB}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {972A1A0D-9F58-4BE0-9B06-1E1E5EF3A2DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {972A1A0D-9F58-4BE0-9B06-1E1E5EF3A2DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {972A1A0D-9F58-4BE0-9B06-1E1E5EF3A2DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {972A1A0D-9F58-4BE0-9B06-1E1E5EF3A2DB}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {313A98AC-3225-47E7-A2B6-FAADB8CE935D}
+ EndGlobalSection
+EndGlobal
diff --git a/Kolokwium/Kolokwium01-150900/App.config b/Kolokwium/Kolokwium01-150900/App.config
new file mode 100644
index 0000000..731f6de
--- /dev/null
+++ b/Kolokwium/Kolokwium01-150900/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Kolokwium/Kolokwium01-150900/CalculatorClass/Calculator.cs b/Kolokwium/Kolokwium01-150900/CalculatorClass/Calculator.cs
new file mode 100644
index 0000000..4509eab
--- /dev/null
+++ b/Kolokwium/Kolokwium01-150900/CalculatorClass/Calculator.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Kolokwium01_150900.CalculatorClass
+{
+ class Calculator
+ {
+ internal int Addition(int a, int b) => a + b;
+ internal int AddititionTriple(int a, int b, int c) => a + b + c;
+ internal int Substraction(int a, int b) => a - b;
+ internal int Multiply(int a, int b) => a * b;
+
+ internal int Division(int a, int b)
+ {
+ if (b == 0) throw new System.Exception("Do not divide by a zero! ");
+ return a / b;
+ }
+
+
+ }
+}
diff --git a/Kolokwium/Kolokwium01-150900/CalculatorClass/WeirdoCalc.cs b/Kolokwium/Kolokwium01-150900/CalculatorClass/WeirdoCalc.cs
new file mode 100644
index 0000000..bcf3bab
--- /dev/null
+++ b/Kolokwium/Kolokwium01-150900/CalculatorClass/WeirdoCalc.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Kolokwium01_150900.CalculatorClass
+{
+ class WeirdoCalc : Calculator
+ {
+ public int AddingModulo(int a, int b)
+ {
+ var resultOne = 26 % a;
+ var resulttwo = 26 % b;
+ return Addition(resultOne, resulttwo);
+ }
+
+ public void rootExtraction(int a, int b)
+ {
+ var resultOne = Math.Sqrt(a);
+ var resultTwo = Math.Sqrt(b);
+ Console.WriteLine($"Sqrt of first value: {resultOne}, Sqrt of second value: {resultTwo}");
+ }
+
+ public int TrippleAddition(int a, int b, int c)
+ {
+ var resultOne = a;
+ var resultTwo = b;
+ var resultThird = c;
+ return AddititionTriple(a, b, c);
+ }
+
+ }
+}
diff --git a/Kolokwium/Kolokwium01-150900/CarClass/Car.cs b/Kolokwium/Kolokwium01-150900/CarClass/Car.cs
new file mode 100644
index 0000000..6406d90
--- /dev/null
+++ b/Kolokwium/Kolokwium01-150900/CarClass/Car.cs
@@ -0,0 +1,51 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Kolokwium01_150900.CarClass
+{
+ class Car
+ {
+ private float engineCapacity;
+ private string nrVIN;
+ public int yearOfProduction;
+ public string name;
+ public float avarageConsumption;
+
+ public enum typeOfRoad
+ {
+ t_0_8,
+ t1,
+ t1_3
+ }
+
+ private Car()
+ {
+
+ }
+
+ public static Car CarCreateObject(float engineCapacity, string nrVIN, int yearOfProduction, string name,
+ float avarageConsumption) => new Car()
+ {
+ engineCapacity = engineCapacity,
+ nrVIN = nrVIN,
+ yearOfProduction = yearOfProduction,
+ name = name,
+ avarageConsumption = avarageConsumption
+ };
+
+ public double CountConsumption(float routeLength, typeOfRoad typeRoad)
+ {
+ switch (typeRoad)
+ {
+ case Car.typeOfRoad.t_0_8: return this.avarageConsumption * routeLength * 0.8;
+ default:
+ case Car.typeOfRoad.t1_3: return this.avarageConsumption * routeLength;
+ case Car.typeOfRoad.t1: return this.avarageConsumption * routeLength * 1.3;
+ }
+
+ }
+ }
+}
diff --git a/Kolokwium/Kolokwium01-150900/EmployeeClass/Bookkeeper.cs b/Kolokwium/Kolokwium01-150900/EmployeeClass/Bookkeeper.cs
new file mode 100644
index 0000000..3f5dbb2
--- /dev/null
+++ b/Kolokwium/Kolokwium01-150900/EmployeeClass/Bookkeeper.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Kolokwium01_150900.EmployerClass
+{
+ class Bookkeeper : Employer
+ {
+ public override void Work() => Console.WriteLine($"Bookkeeper is working at this moment.");
+ public override void PrintInfo() => Console.WriteLine($"Name: {this.firstName}, Secondname: {this.secondName}");
+
+
+ }
+}
diff --git a/Kolokwium/Kolokwium01-150900/EmployeeClass/Employee.cs b/Kolokwium/Kolokwium01-150900/EmployeeClass/Employee.cs
new file mode 100644
index 0000000..cc09c06
--- /dev/null
+++ b/Kolokwium/Kolokwium01-150900/EmployeeClass/Employee.cs
@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Kolokwium01_150900.EmployerClass
+{
+ class Employer
+ {
+ public string firstName;
+ public string secondName;
+ public decimal wages;
+
+ public virtual void PrintInfo() => Console.WriteLine($"Name: {this.firstName}, Secondname: {this.secondName}");
+ public virtual void Work() => Console.WriteLine($"Employee is working at this moment.");
+
+
+
+ }
+}
diff --git a/Kolokwium/Kolokwium01-150900/EmployeeClass/Salesman.cs b/Kolokwium/Kolokwium01-150900/EmployeeClass/Salesman.cs
new file mode 100644
index 0000000..3c559a0
--- /dev/null
+++ b/Kolokwium/Kolokwium01-150900/EmployeeClass/Salesman.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Kolokwium01_150900.EmployerClass
+{
+ class Salesman : Employer
+ {
+ public override void Work() => Console.WriteLine($"Salesman is working at this moment.");
+ public override void PrintInfo() => Console.WriteLine($"Name: {this.firstName}, Secondname: {this.secondName}");
+
+
+
+ }
+}
diff --git a/Kolokwium/Kolokwium01-150900/EmployeeClass/Violinist.cs b/Kolokwium/Kolokwium01-150900/EmployeeClass/Violinist.cs
new file mode 100644
index 0000000..cd3e011
--- /dev/null
+++ b/Kolokwium/Kolokwium01-150900/EmployeeClass/Violinist.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Kolokwium01_150900.EmployerClass
+{
+ class Violinist : Employer
+ {
+ public virtual void Work() => Console.WriteLine($"Violnist is working at this moment.");
+ public override void PrintInfo() => Console.WriteLine($"Name: {this.firstName}, Secondname: {this.secondName}");
+
+
+ }
+}
diff --git a/Kolokwium/Kolokwium01-150900/Exception/CantCreateATriangle.cs b/Kolokwium/Kolokwium01-150900/Exception/CantCreateATriangle.cs
new file mode 100644
index 0000000..222b5b0
--- /dev/null
+++ b/Kolokwium/Kolokwium01-150900/Exception/CantCreateATriangle.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Kolokwium01_150900.Exception
+{
+ class CantCreateATriangle : System.Exception
+ {
+ public CantCreateATriangle()
+ {
+
+ }
+
+ public CantCreateATriangle(string message) : base(message)
+ {
+
+ }
+
+ public CantCreateATriangle(string message, System.Exception inner) : base(message, inner)
+ {
+
+ }
+ }
+}
diff --git a/Kolokwium/Kolokwium01-150900/FigureClass/Point.cs b/Kolokwium/Kolokwium01-150900/FigureClass/Point.cs
new file mode 100644
index 0000000..ae8f377
--- /dev/null
+++ b/Kolokwium/Kolokwium01-150900/FigureClass/Point.cs
@@ -0,0 +1,50 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Runtime.CompilerServices;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Kolokwium01_150900.FigureClass
+{
+ class Point
+ {
+ public float x;
+ public float y;
+
+ public string name_field = $"Point";
+
+ public override string ToString() => $"[{this.name_field}] {this.x}, {this.y}.";
+
+ public double CountCircumference() => 0.0;
+
+ public void PrintInfo()
+ {
+ Console.WriteLine(this);
+ Console.WriteLine($"Circumference: {this.CountCircumference()}.");
+ }
+ public void TakeDataFromInput()
+ {
+ string input;
+
+ do
+ {
+ Console.Write("X: ");
+
+ input = Console.ReadLine();
+ }
+ while (!float.TryParse(input, out this.x));
+
+ do
+ {
+
+ Console.Write("Y: ");
+
+ input = Console.ReadLine();
+ }
+ while (!float.TryParse(input, out this.y));
+
+ }
+
+ }
+}
diff --git a/Kolokwium/Kolokwium01-150900/FigureClass/Rectangle.cs b/Kolokwium/Kolokwium01-150900/FigureClass/Rectangle.cs
new file mode 100644
index 0000000..44518b0
--- /dev/null
+++ b/Kolokwium/Kolokwium01-150900/FigureClass/Rectangle.cs
@@ -0,0 +1,56 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Runtime.InteropServices;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Kolokwium01_150900.FigureClass
+{
+ class Rectangle
+ {
+ public Point a;
+ public Point b;
+ public Point c;
+ public Point d;
+
+ public string name_field = "Rectangle";
+
+ public object Clone()
+ {
+ return this.MemberwiseClone();
+ }
+
+ public override string ToString() => $"[{this.name_field}] A: ({this.a.x}, {this.a.y}), B ({this.b.x}, {this.b.y}), C: ({this.c.x}, {this.c.y}), D: ({this.d.x}, {this.d.y}).";
+
+ public double CountCircumference() => (float)Math.Sqrt(Math.Pow(this.b.x - this.a.x, 2) + Math.Pow(this.b.y - this.a.y, 2)) + Math.Sqrt(Math.Pow(this.c.x - this.b.x, 2) + Math.Pow(this.c.y - this.b.y, 2)) + Math.Sqrt(Math.Pow(this.d.x - this.c.x, 2) + Math.Pow(this.d.y - this.c.y, 2)) + Math.Sqrt(Math.Pow(this.a.x - this.d.x, 2) + Math.Pow(this.a.y - this.d.y, 2));
+
+ public void TakeDataFromInput()
+ {
+ var punkty = new List();
+
+ for (var i = 1; i <= 4; i++)
+ {
+ Console.WriteLine($"point {i}");
+
+
+ var punkt = new Point();
+
+ punkt.TakeDataFromInput();
+
+ punkty.Add(punkt);
+ }
+
+ this.a = punkty[0];
+ this.b = punkty[1];
+ this.c = punkty[2];
+ this.d = punkty[3];
+ }
+
+ public void PrintInfo()
+ {
+ Console.WriteLine(this);
+ Console.WriteLine($"Circumference: {this.CountCircumference()}.");
+ }
+ }
+}
diff --git a/Kolokwium/Kolokwium01-150900/FigureClass/Triangle.cs b/Kolokwium/Kolokwium01-150900/FigureClass/Triangle.cs
new file mode 100644
index 0000000..ea6d9b4
--- /dev/null
+++ b/Kolokwium/Kolokwium01-150900/FigureClass/Triangle.cs
@@ -0,0 +1,88 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Kolokwium01_150900.Exception;
+using Kolokwium01_150900.Interfaces;
+
+namespace Kolokwium01_150900.FigureClass
+{
+ class Triangle : ICloneable, IFigure
+ {
+ public Point a;
+ public Point b;
+ public Point c;
+
+ public string name_field = "Triangle";
+
+ public Triangle()
+ {
+
+ }
+
+ public Triangle(Point a, Point b, Point c)
+ {
+ double ab = Math.Sqrt(Math.Pow(b.x - a.x, 2) + Math.Pow(b.y - a.y, 2)),
+ ac = Math.Sqrt(Math.Pow(c.x - a.x, 2) + Math.Pow(c.y - a.y, 2)),
+ bc = Math.Sqrt(Math.Pow(c.x - b.x, 2) + Math.Pow(c.y - b.y, 2));
+
+ if (!(ab + bc > ac) || !(ab + ac > bc) || !(bc + ac > ab)) return;
+ this.a = a;
+ this.b = b;
+ this.c = c;
+
+ throw new CantCreateATriangle();
+ }
+
+ public object Clone()
+ {
+ return this.MemberwiseClone();
+ }
+
+ public override string ToString() =>
+ $"Name {this.name_field} : A: {this.a.x}, {this.a.y}, B: {this.b.x} {this.b.y}, C: {this.c.x} {this.c.y}";
+
+ public double CountCircumference()
+ {
+ return (float)Math.Sqrt(Math.Pow(this.b.x - this.a.x, 2) + Math.Pow(this.b.y - this.a.y, 2)) + Math.Sqrt(Math.Pow(this.c.x - this.b.x, 2) + Math.Pow(this.c.y - this.b.y, 2)) + Math.Sqrt(Math.Pow(this.c.x - this.a.x, 2) + Math.Pow(this.c.y - this.a.y, 2));
+ }
+ public void TakeDataFromInput()
+ {
+ var points = new List();
+
+ for (var i = 1; i <= 3; i++)
+ {
+ Console.WriteLine($"point {i}");
+
+ var point = new Point();
+
+ point.TakeDataFromInput();
+
+ points.Add(point);
+ }
+
+ double ab = Math.Sqrt(Math.Pow(points[1].x - points[0].x, 2) + Math.Pow(points[1].y - points[0].y, 2)), bc = Math.Sqrt(Math.Pow(points[2].x - points[1].x, 2) + Math.Pow(points[2].y - points[1].y, 2)), ac = Math.Sqrt(Math.Pow(points[2].x - points[0].x, 2) + Math.Pow(points[2].y - points[1].y, 2));
+
+ if (ab + bc <= ac || ab + ac <= bc || bc + ac <= ab) throw new CantCreateATriangle();
+
+ this.a = points[0];
+ this.b = points[1];
+ this.c = points[2];
+ }
+
+ public void Print()
+ {
+ Console.WriteLine(this);
+ Console.WriteLine($"Circumference: {this.CountCircumference()}.");
+ }
+
+ public void PrintInfo()
+ {
+ Console.WriteLine(this);
+ Console.WriteLine($"Circumference: {this.CountCircumference()}");
+ }
+
+
+ }
+}
diff --git a/Kolokwium/Kolokwium01-150900/Interfaces/IFigure.cs b/Kolokwium/Kolokwium01-150900/Interfaces/IFigure.cs
new file mode 100644
index 0000000..4c5b48e
--- /dev/null
+++ b/Kolokwium/Kolokwium01-150900/Interfaces/IFigure.cs
@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Kolokwium01_150900.Interfaces
+{
+ interface IFigure
+ {
+ double CountCircumference();
+ void TakeDataFromInput();
+ void Print();
+ }
+}
diff --git a/Kolokwium/Kolokwium01-150900/Interfaces/IPerson.cs b/Kolokwium/Kolokwium01-150900/Interfaces/IPerson.cs
new file mode 100644
index 0000000..13549a5
--- /dev/null
+++ b/Kolokwium/Kolokwium01-150900/Interfaces/IPerson.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Kolokwium01_150900.Interfaces
+{
+ interface IPerson
+ {
+ void Describe();
+
+ }
+}
diff --git a/Kolokwium/Kolokwium01-150900/Kolokwium01-150900.csproj b/Kolokwium/Kolokwium01-150900/Kolokwium01-150900.csproj
new file mode 100644
index 0000000..0e20968
--- /dev/null
+++ b/Kolokwium/Kolokwium01-150900/Kolokwium01-150900.csproj
@@ -0,0 +1,68 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {972A1A0D-9F58-4BE0-9B06-1E1E5EF3A2DB}
+ Exe
+ Kolokwium01_150900
+ Kolokwium01-150900
+ v4.6.1
+ 512
+ true
+ true
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Kolokwium/Kolokwium01-150900/Program.cs b/Kolokwium/Kolokwium01-150900/Program.cs
new file mode 100644
index 0000000..ef5aa6d
--- /dev/null
+++ b/Kolokwium/Kolokwium01-150900/Program.cs
@@ -0,0 +1,129 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using Kolokwium01_150900.EmployerClass;
+using Kolokwium01_150900.CarClass;
+using Kolokwium01_150900.Exception;
+using Kolokwium01_150900.FigureClass;
+using Kolokwium01_150900.StudentClass;
+
+namespace Kolokwium01_150900
+{
+ class Program
+ {
+ public static string GetType(int variable) => $"Type: int";
+ public static string GetType(string str) => $"Type: string";
+ public static string GetType(int a, string b) => $"Type: int, Type: string";
+ public static string GetType(bool boolean) => $"Type: boolean";
+ public static string GetType(int a, int b, bool c) => $"Type: int, Type: int, Type: boolean";
+
+ static void Main(string[] args)
+ {
+ //ex1
+ var newCar = Car.CarCreateObject(500F, "254FC", 2005, "Fiat", 2.0F);
+ var secondCar = Car.CarCreateObject(250F, "25EC", 2000, "Audi", 2.0F);
+
+ Console.WriteLine($"Consumption: {newCar.CountConsumption((float)500.4, Car.typeOfRoad.t1)}");
+ Console.WriteLine($"Consumption: {secondCar.CountConsumption((float)234.2, Car.typeOfRoad.t_0_8)}");
+ //ex2
+ int b = 4;
+ Console.WriteLine($"{Program.GetType(b)}");
+ string str = "test";
+ Console.WriteLine($"{Program.GetType(str)}");
+ b = 5;
+ str = "test2";
+ Console.WriteLine($"{Program.GetType(b, str)}");
+ bool bol = false;
+ Program.GetType(bol);
+ Console.WriteLine($"{Program.GetType(bol)}");
+ int a = 5;
+ b = 4;
+ bol = true;
+ Console.WriteLine($"{Program.GetType(a, b, bol)}");
+ // ex4
+
+ var employers = new List();
+
+ var test = new Employer();
+ test.firstName = "test";
+ test.secondName = "test";
+ var test2 = new Violinist();
+ test2.firstName = "Test2";
+ test2.secondName = "Test2";
+ var test3 = new Bookkeeper();
+ test3.firstName = "test3";
+ test3.secondName = "test3";
+ var test4 = new Salesman();
+ test4.firstName = "test4";
+ test4.secondName = "test4";
+
+ employers.Add(test);
+ employers.Add(test2);
+ employers.Add(test3);
+ employers.Add(test4);
+
+ foreach (var i in employers)
+ {
+ Console.WriteLine($"name: {i.firstName}, secondname: {i.secondName}");
+ i.Work();
+ }
+
+ //EX5
+
+ var student = new Student("Juan", "Pablo");
+ var studentOne = new Student("Test", "Test");
+ var studentThree = new Student("Arek", "Cieloszczyk");
+ var studentFour = new Student("Bartek", "Test");
+ var studentFive = new Student("Ksfkasf", "dasdas");
+ var studentSix = new Student("Ksfkasf", "Zdasdas");
+
+ var students = new List();
+
+ students.Add(student);
+ students.Add(studentOne);
+ students.Add(studentThree);
+ students.Add(studentFour);
+ students.Add(studentFive);
+ students.Add(studentSix);
+
+
+ var sortedList = students.OrderBy(x => x.secondName);
+
+ foreach (var i in students)
+ {
+ Console.WriteLine($"{i.name}, {i.secondName}");
+ }
+
+ //ex with figure
+
+ var d = new Point();
+
+ d.TakeDataFromInput();
+ d.PrintInfo();
+
+ var f = new Triangle();
+
+ try
+ {
+ f.TakeDataFromInput();
+ f.PrintInfo();
+ }
+ catch (CantCreateATriangle)
+ {
+ Console.WriteLine("Can't create a triangle.");
+ }
+ catch (System.Exception e)
+ {
+ Console.WriteLine(e);
+ }
+
+ var g = new Rectangle();
+
+ g.TakeDataFromInput();
+ g.PrintInfo();
+
+
+ Console.ReadKey();
+ }
+ }
+}
diff --git a/Kolokwium/Kolokwium01-150900/Properties/AssemblyInfo.cs b/Kolokwium/Kolokwium01-150900/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..aa17757
--- /dev/null
+++ b/Kolokwium/Kolokwium01-150900/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// Ogólne informacje o zestawie są kontrolowane poprzez następujący
+// zestaw atrybutów. Zmień wartości tych atrybutów, aby zmodyfikować informacje
+// powiązane z zestawem.
+[assembly: AssemblyTitle("Kolokwium01-150900")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Kolokwium01-150900")]
+[assembly: AssemblyCopyright("Copyright © 2019")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Ustawienie elementu ComVisible na wartość false sprawia, że typy w tym zestawie są niewidoczne
+// dla składników COM. Jeśli potrzebny jest dostęp do typu w tym zestawie z
+// COM, ustaw wartość true dla atrybutu ComVisible tego typu.
+[assembly: ComVisible(false)]
+
+// Następujący identyfikator GUID jest identyfikatorem biblioteki typów w przypadku udostępnienia tego projektu w modelu COM
+[assembly: Guid("972a1a0d-9f58-4be0-9b06-1e1e5ef3a2db")]
+
+// Informacje o wersji zestawu zawierają następujące cztery wartości:
+//
+// Wersja główna
+// Wersja pomocnicza
+// Numer kompilacji
+// Rewizja
+//
+// Możesz określić wszystkie wartości lub użyć domyślnych numerów kompilacji i poprawki
+// przy użyciu symbolu „*”, tak jak pokazano poniżej:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Kolokwium/Kolokwium01-150900/StudentClass/Student.cs b/Kolokwium/Kolokwium01-150900/StudentClass/Student.cs
new file mode 100644
index 0000000..9882a51
--- /dev/null
+++ b/Kolokwium/Kolokwium01-150900/StudentClass/Student.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Kolokwium01_150900.Interfaces;
+
+namespace Kolokwium01_150900.StudentClass
+{
+ class Student : IPerson
+ {
+
+ public string name;
+ public string secondName;
+
+ public Student(string name, string secondName)
+ {
+ this.name = name;
+ this.secondName = secondName;
+ }
+
+ public void Describe()
+ {
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/Lesson11/.vs/Lesson11/v16/.suo b/Lesson11/.vs/Lesson11/v16/.suo
new file mode 100644
index 0000000..cc5298f
Binary files /dev/null and b/Lesson11/.vs/Lesson11/v16/.suo differ
diff --git a/Lesson11/.vs/Lesson11/v16/Server/sqlite3/db.lock b/Lesson11/.vs/Lesson11/v16/Server/sqlite3/db.lock
new file mode 100644
index 0000000..e69de29
diff --git a/Lesson11/.vs/Lesson11/v16/Server/sqlite3/storage.ide b/Lesson11/.vs/Lesson11/v16/Server/sqlite3/storage.ide
new file mode 100644
index 0000000..de1cb7d
Binary files /dev/null and b/Lesson11/.vs/Lesson11/v16/Server/sqlite3/storage.ide differ
diff --git a/Lesson11/Lesson11.sln b/Lesson11/Lesson11.sln
new file mode 100644
index 0000000..137f518
--- /dev/null
+++ b/Lesson11/Lesson11.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.29609.76
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lesson11", "Lesson11\Lesson11.csproj", "{1D3D4D8C-B601-4609-81F7-A1CA622204F3}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {1D3D4D8C-B601-4609-81F7-A1CA622204F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1D3D4D8C-B601-4609-81F7-A1CA622204F3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1D3D4D8C-B601-4609-81F7-A1CA622204F3}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1D3D4D8C-B601-4609-81F7-A1CA622204F3}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {E7F8A8D0-B285-4942-AD31-EF9601D672DD}
+ EndGlobalSection
+EndGlobal
diff --git a/Lesson11/Lesson11/App.config b/Lesson11/Lesson11/App.config
new file mode 100644
index 0000000..56efbc7
--- /dev/null
+++ b/Lesson11/Lesson11/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Lesson11/Lesson11/App.xaml b/Lesson11/Lesson11/App.xaml
new file mode 100644
index 0000000..0dd66ed
--- /dev/null
+++ b/Lesson11/Lesson11/App.xaml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/Lesson11/Lesson11/App.xaml.cs b/Lesson11/Lesson11/App.xaml.cs
new file mode 100644
index 0000000..4a0aba6
--- /dev/null
+++ b/Lesson11/Lesson11/App.xaml.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows;
+
+namespace Lesson11
+{
+ ///
+ /// Interaction logic for App.xaml
+ ///
+ public partial class App : Application
+ {
+ }
+}
diff --git a/Lesson11/Lesson11/Lesson11.csproj b/Lesson11/Lesson11/Lesson11.csproj
new file mode 100644
index 0000000..3831908
--- /dev/null
+++ b/Lesson11/Lesson11/Lesson11.csproj
@@ -0,0 +1,98 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {1D3D4D8C-B601-4609-81F7-A1CA622204F3}
+ WinExe
+ Lesson11
+ Lesson11
+ v4.7.2
+ 512
+ {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ 4
+ true
+ true
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+ 4.0
+
+
+
+
+
+
+
+ MSBuild:Compile
+ Designer
+
+
+ MSBuild:Compile
+ Designer
+
+
+ App.xaml
+ Code
+
+
+ MainWindow.xaml
+ Code
+
+
+
+
+ Code
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Lesson11/Lesson11/MainWindow.xaml b/Lesson11/Lesson11/MainWindow.xaml
new file mode 100644
index 0000000..0b5d453
--- /dev/null
+++ b/Lesson11/Lesson11/MainWindow.xaml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Lesson11/Lesson11/MainWindow.xaml.cs b/Lesson11/Lesson11/MainWindow.xaml.cs
new file mode 100644
index 0000000..14260fd
--- /dev/null
+++ b/Lesson11/Lesson11/MainWindow.xaml.cs
@@ -0,0 +1,54 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace Lesson11
+{
+ ///
+ /// Interaction logic for MainWindow.xaml
+ ///
+ public partial class MainWindow : Window
+ {
+
+ public MainWindow()
+ {
+ InitializeComponent();
+ }
+
+ private string name = string.Empty;
+
+ private void MyButton_Click(object sender, RoutedEventArgs e)
+ {
+ if (MyTextBoxWyświetlanie.Text == "Write a name:") return;
+ MyButton.Background = Brushes.Red;
+ name = MyTextBoxWyświetlanie.Text;
+ MyTextBoxPobieranie.Text = $"{this.name}";
+ }
+
+
+ private void MyTextBoxPobieranie_TextChanged(object sender, TextChangedEventArgs e)
+ {
+ }
+
+ private void MyTextBoxWyświetlanie_TextChanged(object sender, TextChangedEventArgs e)
+ {
+ //MyTextBoxWyświetlanie.Text = $"Write a name: ";
+ }
+
+ private void Button_Click(object sender, RoutedEventArgs e)
+ {
+ MyTextBoxPobieranie.Clear();
+ }
+ }
+}
diff --git a/Lesson11/Lesson11/Properties/AssemblyInfo.cs b/Lesson11/Lesson11/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..bfbef37
--- /dev/null
+++ b/Lesson11/Lesson11/Properties/AssemblyInfo.cs
@@ -0,0 +1,55 @@
+using System.Reflection;
+using System.Resources;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Windows;
+
+// 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("Lesson11")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Lesson11")]
+[assembly: AssemblyCopyright("Copyright © 2020")]
+[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)]
+
+//In order to begin building localizable applications, set
+//CultureYouAreCodingWith in your .csproj file
+//inside a . For example, if you are using US english
+//in your source files, set the to en-US. Then uncomment
+//the NeutralResourceLanguage attribute below. Update the "en-US" in
+//the line below to match the UICulture setting in the project file.
+
+//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
+
+
+[assembly: ThemeInfo(
+ ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
+ //(used if a resource is not found in the page,
+ // or application resource dictionaries)
+ ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
+ //(used if a resource is not found in the page,
+ // app, or any theme specific resource dictionaries)
+)]
+
+
+// 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/Lesson11/Lesson11/Properties/Resources.Designer.cs b/Lesson11/Lesson11/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..d5bb059
--- /dev/null
+++ b/Lesson11/Lesson11/Properties/Resources.Designer.cs
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+//
+// 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 Lesson11.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("Lesson11.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/Lesson11/Lesson11/Properties/Resources.resx b/Lesson11/Lesson11/Properties/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/Lesson11/Lesson11/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/Lesson11/Lesson11/Properties/Settings.Designer.cs b/Lesson11/Lesson11/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..ce2fb15
--- /dev/null
+++ b/Lesson11/Lesson11/Properties/Settings.Designer.cs
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+//
+// 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 Lesson11.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/Lesson11/Lesson11/Properties/Settings.settings b/Lesson11/Lesson11/Properties/Settings.settings
new file mode 100644
index 0000000..033d7a5
--- /dev/null
+++ b/Lesson11/Lesson11/Properties/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Lesson11/Lesson11/bin/Debug/Lesson11.exe b/Lesson11/Lesson11/bin/Debug/Lesson11.exe
new file mode 100644
index 0000000..a2f8bda
Binary files /dev/null and b/Lesson11/Lesson11/bin/Debug/Lesson11.exe differ
diff --git a/Lesson11/Lesson11/bin/Debug/Lesson11.exe.config b/Lesson11/Lesson11/bin/Debug/Lesson11.exe.config
new file mode 100644
index 0000000..56efbc7
--- /dev/null
+++ b/Lesson11/Lesson11/bin/Debug/Lesson11.exe.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Lesson11/Lesson11/bin/Debug/Lesson11.pdb b/Lesson11/Lesson11/bin/Debug/Lesson11.pdb
new file mode 100644
index 0000000..7d88e47
Binary files /dev/null and b/Lesson11/Lesson11/bin/Debug/Lesson11.pdb differ
diff --git a/Lesson11/Lesson11/obj/Debug/App.g.cs b/Lesson11/Lesson11/obj/Debug/App.g.cs
new file mode 100644
index 0000000..7b6b848
--- /dev/null
+++ b/Lesson11/Lesson11/obj/Debug/App.g.cs
@@ -0,0 +1,70 @@
+#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "7643EF4D0A3E3110A6C321E39796A0FE5F54155F52D0F147193CA36E1E956023"
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+using Lesson11;
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+
+
+namespace Lesson11 {
+
+
+ ///
+ /// App
+ ///
+ public partial class App : System.Windows.Application {
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ public void InitializeComponent() {
+
+ #line 5 "..\..\App.xaml"
+ this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
+
+ #line default
+ #line hidden
+ }
+
+ ///
+ /// Application Entry Point.
+ ///
+ [System.STAThreadAttribute()]
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ public static void Main() {
+ Lesson11.App app = new Lesson11.App();
+ app.InitializeComponent();
+ app.Run();
+ }
+ }
+}
+
diff --git a/Lesson11/Lesson11/obj/Debug/App.g.i.cs b/Lesson11/Lesson11/obj/Debug/App.g.i.cs
new file mode 100644
index 0000000..7b6b848
--- /dev/null
+++ b/Lesson11/Lesson11/obj/Debug/App.g.i.cs
@@ -0,0 +1,70 @@
+#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "7643EF4D0A3E3110A6C321E39796A0FE5F54155F52D0F147193CA36E1E956023"
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+using Lesson11;
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+
+
+namespace Lesson11 {
+
+
+ ///
+ /// App
+ ///
+ public partial class App : System.Windows.Application {
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ public void InitializeComponent() {
+
+ #line 5 "..\..\App.xaml"
+ this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
+
+ #line default
+ #line hidden
+ }
+
+ ///
+ /// Application Entry Point.
+ ///
+ [System.STAThreadAttribute()]
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ public static void Main() {
+ Lesson11.App app = new Lesson11.App();
+ app.InitializeComponent();
+ app.Run();
+ }
+ }
+}
+
diff --git a/Lesson11/Lesson11/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Lesson11/Lesson11/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
new file mode 100644
index 0000000..5fbd29f
Binary files /dev/null and b/Lesson11/Lesson11/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ
diff --git a/Lesson11/Lesson11/obj/Debug/Lesson11.Properties.Resources.resources b/Lesson11/Lesson11/obj/Debug/Lesson11.Properties.Resources.resources
new file mode 100644
index 0000000..6c05a97
Binary files /dev/null and b/Lesson11/Lesson11/obj/Debug/Lesson11.Properties.Resources.resources differ
diff --git a/Lesson11/Lesson11/obj/Debug/Lesson11.csproj.FileListAbsolute.txt b/Lesson11/Lesson11/obj/Debug/Lesson11.csproj.FileListAbsolute.txt
new file mode 100644
index 0000000..7db3d07
--- /dev/null
+++ b/Lesson11/Lesson11/obj/Debug/Lesson11.csproj.FileListAbsolute.txt
@@ -0,0 +1,14 @@
+C:\Users\ozzu\source\repos\Lesson11\Lesson11\bin\Debug\Lesson11.exe.config
+C:\Users\ozzu\source\repos\Lesson11\Lesson11\bin\Debug\Lesson11.exe
+C:\Users\ozzu\source\repos\Lesson11\Lesson11\bin\Debug\Lesson11.pdb
+C:\Users\ozzu\source\repos\Lesson11\Lesson11\obj\Debug\Lesson11.csprojAssemblyReference.cache
+C:\Users\ozzu\source\repos\Lesson11\Lesson11\obj\Debug\MainWindow.g.cs
+C:\Users\ozzu\source\repos\Lesson11\Lesson11\obj\Debug\App.g.cs
+C:\Users\ozzu\source\repos\Lesson11\Lesson11\obj\Debug\Lesson11_MarkupCompile.cache
+C:\Users\ozzu\source\repos\Lesson11\Lesson11\obj\Debug\Lesson11_MarkupCompile.lref
+C:\Users\ozzu\source\repos\Lesson11\Lesson11\obj\Debug\MainWindow.baml
+C:\Users\ozzu\source\repos\Lesson11\Lesson11\obj\Debug\Lesson11.g.resources
+C:\Users\ozzu\source\repos\Lesson11\Lesson11\obj\Debug\Lesson11.Properties.Resources.resources
+C:\Users\ozzu\source\repos\Lesson11\Lesson11\obj\Debug\Lesson11.csproj.GenerateResource.cache
+C:\Users\ozzu\source\repos\Lesson11\Lesson11\obj\Debug\Lesson11.exe
+C:\Users\ozzu\source\repos\Lesson11\Lesson11\obj\Debug\Lesson11.pdb
diff --git a/Lesson11/Lesson11/obj/Debug/Lesson11.csproj.GenerateResource.cache b/Lesson11/Lesson11/obj/Debug/Lesson11.csproj.GenerateResource.cache
new file mode 100644
index 0000000..ab5e36e
Binary files /dev/null and b/Lesson11/Lesson11/obj/Debug/Lesson11.csproj.GenerateResource.cache differ
diff --git a/Lesson11/Lesson11/obj/Debug/Lesson11.csprojAssemblyReference.cache b/Lesson11/Lesson11/obj/Debug/Lesson11.csprojAssemblyReference.cache
new file mode 100644
index 0000000..41ca22e
Binary files /dev/null and b/Lesson11/Lesson11/obj/Debug/Lesson11.csprojAssemblyReference.cache differ
diff --git a/Lesson11/Lesson11/obj/Debug/Lesson11.exe b/Lesson11/Lesson11/obj/Debug/Lesson11.exe
new file mode 100644
index 0000000..a2f8bda
Binary files /dev/null and b/Lesson11/Lesson11/obj/Debug/Lesson11.exe differ
diff --git a/Lesson11/Lesson11/obj/Debug/Lesson11.g.resources b/Lesson11/Lesson11/obj/Debug/Lesson11.g.resources
new file mode 100644
index 0000000..f21007c
Binary files /dev/null and b/Lesson11/Lesson11/obj/Debug/Lesson11.g.resources differ
diff --git a/Lesson11/Lesson11/obj/Debug/Lesson11.pdb b/Lesson11/Lesson11/obj/Debug/Lesson11.pdb
new file mode 100644
index 0000000..7d88e47
Binary files /dev/null and b/Lesson11/Lesson11/obj/Debug/Lesson11.pdb differ
diff --git a/Lesson11/Lesson11/obj/Debug/Lesson11_MarkupCompile.cache b/Lesson11/Lesson11/obj/Debug/Lesson11_MarkupCompile.cache
new file mode 100644
index 0000000..d82c1e4
--- /dev/null
+++ b/Lesson11/Lesson11/obj/Debug/Lesson11_MarkupCompile.cache
@@ -0,0 +1,20 @@
+Lesson11
+
+
+winexe
+C#
+.cs
+C:\Users\ozzu\source\repos\Lesson11\Lesson11\obj\Debug\
+Lesson11
+none
+false
+DEBUG;TRACE
+C:\Users\ozzu\source\repos\Lesson11\Lesson11\App.xaml
+11151548125
+
+5-2017746502
+13-1505183044
+MainWindow.xaml;
+
+False
+
diff --git a/Lesson11/Lesson11/obj/Debug/Lesson11_MarkupCompile.i.cache b/Lesson11/Lesson11/obj/Debug/Lesson11_MarkupCompile.i.cache
new file mode 100644
index 0000000..8033c23
--- /dev/null
+++ b/Lesson11/Lesson11/obj/Debug/Lesson11_MarkupCompile.i.cache
@@ -0,0 +1,20 @@
+Lesson11
+
+
+winexe
+C#
+.cs
+C:\Users\ozzu\source\repos\Lesson11\Lesson11\obj\Debug\
+Lesson11
+none
+false
+DEBUG;TRACE
+C:\Users\ozzu\source\repos\Lesson11\Lesson11\App.xaml
+11151548125
+
+6338337291
+13-1505183044
+MainWindow.xaml;
+
+True
+
diff --git a/Lesson11/Lesson11/obj/Debug/Lesson11_MarkupCompile.i.lref b/Lesson11/Lesson11/obj/Debug/Lesson11_MarkupCompile.i.lref
new file mode 100644
index 0000000..d93dc30
--- /dev/null
+++ b/Lesson11/Lesson11/obj/Debug/Lesson11_MarkupCompile.i.lref
@@ -0,0 +1,4 @@
+
+
+FC:\Users\ozzu\source\repos\Lesson11\Lesson11\MainWindow.xaml;;
+
diff --git a/Lesson11/Lesson11/obj/Debug/Lesson11_MarkupCompile.lref b/Lesson11/Lesson11/obj/Debug/Lesson11_MarkupCompile.lref
new file mode 100644
index 0000000..d93dc30
--- /dev/null
+++ b/Lesson11/Lesson11/obj/Debug/Lesson11_MarkupCompile.lref
@@ -0,0 +1,4 @@
+
+
+FC:\Users\ozzu\source\repos\Lesson11\Lesson11\MainWindow.xaml;;
+
diff --git a/Lesson11/Lesson11/obj/Debug/MainWindow.baml b/Lesson11/Lesson11/obj/Debug/MainWindow.baml
new file mode 100644
index 0000000..85ddd19
Binary files /dev/null and b/Lesson11/Lesson11/obj/Debug/MainWindow.baml differ
diff --git a/Lesson11/Lesson11/obj/Debug/MainWindow.g.cs b/Lesson11/Lesson11/obj/Debug/MainWindow.g.cs
new file mode 100644
index 0000000..e9aac5d
--- /dev/null
+++ b/Lesson11/Lesson11/obj/Debug/MainWindow.g.cs
@@ -0,0 +1,146 @@
+#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "50A4D60E7B4BC858534CC857CB2542DC63CD54D11C04529CB80147DDB0353687"
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+using Lesson11;
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+
+
+namespace Lesson11 {
+
+
+ ///
+ /// MainWindow
+ ///
+ public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+
+
+ #line 10 "..\..\MainWindow.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal System.Windows.Controls.Button MyButton;
+
+ #line default
+ #line hidden
+
+
+ #line 11 "..\..\MainWindow.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal System.Windows.Controls.TextBox MyTextBoxPobieranie;
+
+ #line default
+ #line hidden
+
+
+ #line 12 "..\..\MainWindow.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal System.Windows.Controls.TextBox MyTextBoxWyświetlanie;
+
+ #line default
+ #line hidden
+
+
+ #line 16 "..\..\MainWindow.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal System.Windows.Controls.Button ClearButton;
+
+ #line default
+ #line hidden
+
+ private bool _contentLoaded;
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ public void InitializeComponent() {
+ if (_contentLoaded) {
+ return;
+ }
+ _contentLoaded = true;
+ System.Uri resourceLocater = new System.Uri("/Lesson11;component/mainwindow.xaml", System.UriKind.Relative);
+
+ #line 1 "..\..\MainWindow.xaml"
+ System.Windows.Application.LoadComponent(this, resourceLocater);
+
+ #line default
+ #line hidden
+ }
+
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+ switch (connectionId)
+ {
+ case 1:
+ this.MyButton = ((System.Windows.Controls.Button)(target));
+
+ #line 10 "..\..\MainWindow.xaml"
+ this.MyButton.Click += new System.Windows.RoutedEventHandler(this.MyButton_Click);
+
+ #line default
+ #line hidden
+ return;
+ case 2:
+ this.MyTextBoxPobieranie = ((System.Windows.Controls.TextBox)(target));
+
+ #line 11 "..\..\MainWindow.xaml"
+ this.MyTextBoxPobieranie.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.MyTextBoxPobieranie_TextChanged);
+
+ #line default
+ #line hidden
+ return;
+ case 3:
+ this.MyTextBoxWyświetlanie = ((System.Windows.Controls.TextBox)(target));
+
+ #line 12 "..\..\MainWindow.xaml"
+ this.MyTextBoxWyświetlanie.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.MyTextBoxWyświetlanie_TextChanged);
+
+ #line default
+ #line hidden
+ return;
+ case 4:
+ this.ClearButton = ((System.Windows.Controls.Button)(target));
+
+ #line 16 "..\..\MainWindow.xaml"
+ this.ClearButton.Click += new System.Windows.RoutedEventHandler(this.Button_Click);
+
+ #line default
+ #line hidden
+ return;
+ }
+ this._contentLoaded = true;
+ }
+ }
+}
+
diff --git a/Lesson11/Lesson11/obj/Debug/MainWindow.g.i.cs b/Lesson11/Lesson11/obj/Debug/MainWindow.g.i.cs
new file mode 100644
index 0000000..e9aac5d
--- /dev/null
+++ b/Lesson11/Lesson11/obj/Debug/MainWindow.g.i.cs
@@ -0,0 +1,146 @@
+#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "50A4D60E7B4BC858534CC857CB2542DC63CD54D11C04529CB80147DDB0353687"
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+using Lesson11;
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+
+
+namespace Lesson11 {
+
+
+ ///
+ /// MainWindow
+ ///
+ public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+
+
+ #line 10 "..\..\MainWindow.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal System.Windows.Controls.Button MyButton;
+
+ #line default
+ #line hidden
+
+
+ #line 11 "..\..\MainWindow.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal System.Windows.Controls.TextBox MyTextBoxPobieranie;
+
+ #line default
+ #line hidden
+
+
+ #line 12 "..\..\MainWindow.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal System.Windows.Controls.TextBox MyTextBoxWyświetlanie;
+
+ #line default
+ #line hidden
+
+
+ #line 16 "..\..\MainWindow.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal System.Windows.Controls.Button ClearButton;
+
+ #line default
+ #line hidden
+
+ private bool _contentLoaded;
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ public void InitializeComponent() {
+ if (_contentLoaded) {
+ return;
+ }
+ _contentLoaded = true;
+ System.Uri resourceLocater = new System.Uri("/Lesson11;component/mainwindow.xaml", System.UriKind.Relative);
+
+ #line 1 "..\..\MainWindow.xaml"
+ System.Windows.Application.LoadComponent(this, resourceLocater);
+
+ #line default
+ #line hidden
+ }
+
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+ switch (connectionId)
+ {
+ case 1:
+ this.MyButton = ((System.Windows.Controls.Button)(target));
+
+ #line 10 "..\..\MainWindow.xaml"
+ this.MyButton.Click += new System.Windows.RoutedEventHandler(this.MyButton_Click);
+
+ #line default
+ #line hidden
+ return;
+ case 2:
+ this.MyTextBoxPobieranie = ((System.Windows.Controls.TextBox)(target));
+
+ #line 11 "..\..\MainWindow.xaml"
+ this.MyTextBoxPobieranie.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.MyTextBoxPobieranie_TextChanged);
+
+ #line default
+ #line hidden
+ return;
+ case 3:
+ this.MyTextBoxWyświetlanie = ((System.Windows.Controls.TextBox)(target));
+
+ #line 12 "..\..\MainWindow.xaml"
+ this.MyTextBoxWyświetlanie.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.MyTextBoxWyświetlanie_TextChanged);
+
+ #line default
+ #line hidden
+ return;
+ case 4:
+ this.ClearButton = ((System.Windows.Controls.Button)(target));
+
+ #line 16 "..\..\MainWindow.xaml"
+ this.ClearButton.Click += new System.Windows.RoutedEventHandler(this.Button_Click);
+
+ #line default
+ #line hidden
+ return;
+ }
+ this._contentLoaded = true;
+ }
+ }
+}
+
diff --git a/Lesson11/cw2/.vs/cw2/v16/.suo b/Lesson11/cw2/.vs/cw2/v16/.suo
new file mode 100644
index 0000000..d890fc9
Binary files /dev/null and b/Lesson11/cw2/.vs/cw2/v16/.suo differ
diff --git a/Lesson11/cw2/.vs/cw2/v16/Server/sqlite3/db.lock b/Lesson11/cw2/.vs/cw2/v16/Server/sqlite3/db.lock
new file mode 100644
index 0000000..e69de29
diff --git a/Lesson11/cw2/.vs/cw2/v16/Server/sqlite3/storage.ide b/Lesson11/cw2/.vs/cw2/v16/Server/sqlite3/storage.ide
new file mode 100644
index 0000000..7572af5
Binary files /dev/null and b/Lesson11/cw2/.vs/cw2/v16/Server/sqlite3/storage.ide differ
diff --git a/Lesson11/cw2/WpfApp1/App.config b/Lesson11/cw2/WpfApp1/App.config
new file mode 100644
index 0000000..56efbc7
--- /dev/null
+++ b/Lesson11/cw2/WpfApp1/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Lesson11/cw2/WpfApp1/App.xaml b/Lesson11/cw2/WpfApp1/App.xaml
new file mode 100644
index 0000000..2e70522
--- /dev/null
+++ b/Lesson11/cw2/WpfApp1/App.xaml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/Lesson11/cw2/WpfApp1/App.xaml.cs b/Lesson11/cw2/WpfApp1/App.xaml.cs
new file mode 100644
index 0000000..909eaa5
--- /dev/null
+++ b/Lesson11/cw2/WpfApp1/App.xaml.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows;
+
+namespace WpfApp1
+{
+ ///
+ /// Interaction logic for App.xaml
+ ///
+ public partial class App : Application
+ {
+ }
+}
diff --git a/Lesson11/cw2/WpfApp1/MainWindow.xaml b/Lesson11/cw2/WpfApp1/MainWindow.xaml
new file mode 100644
index 0000000..2f30e4f
--- /dev/null
+++ b/Lesson11/cw2/WpfApp1/MainWindow.xaml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Lesson11/cw2/WpfApp1/MainWindow.xaml.cs b/Lesson11/cw2/WpfApp1/MainWindow.xaml.cs
new file mode 100644
index 0000000..83b10a5
--- /dev/null
+++ b/Lesson11/cw2/WpfApp1/MainWindow.xaml.cs
@@ -0,0 +1,110 @@
+using System;
+using System.CodeDom;
+using System.Collections.Generic;
+using System.Linq;
+using System.Net.Mime;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace WpfApp1
+{
+ ///
+ /// Interaction logic for MainWindow.xaml
+ ///
+ public partial class MainWindow : Window
+ {
+ public MainWindow()
+ {
+ InitializeComponent();
+ }
+
+ private double number;
+ private double number1;
+ private double final_result;
+
+ private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
+ {
+
+ }
+
+ private void InputTwo_TextChanged(object sender, TextChangedEventArgs e)
+ {
+
+ }
+
+ private void Button_Click(object sender, RoutedEventArgs e)
+ {
+ ResultChar('+');
+ }
+
+ private double ConvertNumber(string input)
+ {
+ double output;
+ if (double.TryParse(input, out output))
+ {
+ return output;
+ }
+ throw new Exception();
+ }
+
+ public void ResultChar(char input)
+ {
+ try
+ {
+ number = ConvertNumber(InputOne.Text);
+ number1 = ConvertNumber(InputTwo.Text);
+ switch (input)
+ {
+ case '+':
+ Result.Text = (number + number1).ToString();
+ break;
+ case '-':
+ Result.Text = (number - number1).ToString();
+ break;
+ case '*':
+ Result.Text = (number * number1).ToString();
+ break;
+ case '/':
+ if (number1 == 0)
+ {
+ MessageBox.Show("Don't divide by zero!");
+ }
+ else
+ Result.Text = (number / number1).ToString();
+ break;
+ }
+ }
+ catch (Exception)
+ {
+ MessageBox.Show("Invalid input");
+ }
+
+ InputOne.Text = string.Empty;
+ InputTwo.Text = string.Empty;
+ }
+
+ private void Button_Click_1(object sender, RoutedEventArgs e)
+ {
+ ResultChar('-');
+ }
+
+ private void Button_Click_2(object sender, RoutedEventArgs e)
+ {
+ ResultChar('*');
+ }
+
+ private void Button_Click_3(object sender, RoutedEventArgs e)
+ {
+ ResultChar('/');
+ }
+ }
+}
\ No newline at end of file
diff --git a/Lesson11/cw2/WpfApp1/Properties/AssemblyInfo.cs b/Lesson11/cw2/WpfApp1/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..05e4327
--- /dev/null
+++ b/Lesson11/cw2/WpfApp1/Properties/AssemblyInfo.cs
@@ -0,0 +1,55 @@
+using System.Reflection;
+using System.Resources;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Windows;
+
+// 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("WpfApp1")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("WpfApp1")]
+[assembly: AssemblyCopyright("Copyright © 2020")]
+[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)]
+
+//In order to begin building localizable applications, set
+//CultureYouAreCodingWith in your .csproj file
+//inside a . For example, if you are using US english
+//in your source files, set the to en-US. Then uncomment
+//the NeutralResourceLanguage attribute below. Update the "en-US" in
+//the line below to match the UICulture setting in the project file.
+
+//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
+
+
+[assembly: ThemeInfo(
+ ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
+ //(used if a resource is not found in the page,
+ // or application resource dictionaries)
+ ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
+ //(used if a resource is not found in the page,
+ // app, or any theme specific resource dictionaries)
+)]
+
+
+// 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/Lesson11/cw2/WpfApp1/Properties/Resources.Designer.cs b/Lesson11/cw2/WpfApp1/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..c8c627c
--- /dev/null
+++ b/Lesson11/cw2/WpfApp1/Properties/Resources.Designer.cs
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+//
+// 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 WpfApp1.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("WpfApp1.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/Lesson11/cw2/WpfApp1/Properties/Resources.resx b/Lesson11/cw2/WpfApp1/Properties/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/Lesson11/cw2/WpfApp1/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/Lesson11/cw2/WpfApp1/Properties/Settings.Designer.cs b/Lesson11/cw2/WpfApp1/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..6512fd0
--- /dev/null
+++ b/Lesson11/cw2/WpfApp1/Properties/Settings.Designer.cs
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+//
+// 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 WpfApp1.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/Lesson11/cw2/WpfApp1/Properties/Settings.settings b/Lesson11/cw2/WpfApp1/Properties/Settings.settings
new file mode 100644
index 0000000..033d7a5
--- /dev/null
+++ b/Lesson11/cw2/WpfApp1/Properties/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Lesson11/cw2/WpfApp1/WpfApp1.csproj b/Lesson11/cw2/WpfApp1/WpfApp1.csproj
new file mode 100644
index 0000000..554adb6
--- /dev/null
+++ b/Lesson11/cw2/WpfApp1/WpfApp1.csproj
@@ -0,0 +1,98 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {D5AE6267-6786-4782-B465-988C6A561166}
+ WinExe
+ WpfApp1
+ WpfApp1
+ v4.7.2
+ 512
+ {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ 4
+ true
+ true
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+ 4.0
+
+
+
+
+
+
+
+ MSBuild:Compile
+ Designer
+
+
+ MSBuild:Compile
+ Designer
+
+
+ App.xaml
+ Code
+
+
+ MainWindow.xaml
+ Code
+
+
+
+
+ Code
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Lesson11/cw2/WpfApp1/bin/Debug/WpfApp1.exe b/Lesson11/cw2/WpfApp1/bin/Debug/WpfApp1.exe
new file mode 100644
index 0000000..8388229
Binary files /dev/null and b/Lesson11/cw2/WpfApp1/bin/Debug/WpfApp1.exe differ
diff --git a/Lesson11/cw2/WpfApp1/bin/Debug/WpfApp1.exe.config b/Lesson11/cw2/WpfApp1/bin/Debug/WpfApp1.exe.config
new file mode 100644
index 0000000..56efbc7
--- /dev/null
+++ b/Lesson11/cw2/WpfApp1/bin/Debug/WpfApp1.exe.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Lesson11/cw2/WpfApp1/bin/Debug/WpfApp1.pdb b/Lesson11/cw2/WpfApp1/bin/Debug/WpfApp1.pdb
new file mode 100644
index 0000000..949b469
Binary files /dev/null and b/Lesson11/cw2/WpfApp1/bin/Debug/WpfApp1.pdb differ
diff --git a/Lesson11/cw2/WpfApp1/obj/Debug/App.g.cs b/Lesson11/cw2/WpfApp1/obj/Debug/App.g.cs
new file mode 100644
index 0000000..002634d
--- /dev/null
+++ b/Lesson11/cw2/WpfApp1/obj/Debug/App.g.cs
@@ -0,0 +1,70 @@
+#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "70691D25E8ED7D02D8E3A8944032595E276B439C79B7B88F62E20E6FDABEEE0D"
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using WpfApp1;
+
+
+namespace WpfApp1 {
+
+
+ ///
+ /// App
+ ///
+ public partial class App : System.Windows.Application {
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ public void InitializeComponent() {
+
+ #line 5 "..\..\App.xaml"
+ this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
+
+ #line default
+ #line hidden
+ }
+
+ ///
+ /// Application Entry Point.
+ ///
+ [System.STAThreadAttribute()]
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ public static void Main() {
+ WpfApp1.App app = new WpfApp1.App();
+ app.InitializeComponent();
+ app.Run();
+ }
+ }
+}
+
diff --git a/Lesson11/cw2/WpfApp1/obj/Debug/App.g.i.cs b/Lesson11/cw2/WpfApp1/obj/Debug/App.g.i.cs
new file mode 100644
index 0000000..002634d
--- /dev/null
+++ b/Lesson11/cw2/WpfApp1/obj/Debug/App.g.i.cs
@@ -0,0 +1,70 @@
+#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "70691D25E8ED7D02D8E3A8944032595E276B439C79B7B88F62E20E6FDABEEE0D"
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using WpfApp1;
+
+
+namespace WpfApp1 {
+
+
+ ///
+ /// App
+ ///
+ public partial class App : System.Windows.Application {
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ public void InitializeComponent() {
+
+ #line 5 "..\..\App.xaml"
+ this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
+
+ #line default
+ #line hidden
+ }
+
+ ///
+ /// Application Entry Point.
+ ///
+ [System.STAThreadAttribute()]
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ public static void Main() {
+ WpfApp1.App app = new WpfApp1.App();
+ app.InitializeComponent();
+ app.Run();
+ }
+ }
+}
+
diff --git a/Lesson11/cw2/WpfApp1/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/Lesson11/cw2/WpfApp1/obj/Debug/DesignTimeResolveAssemblyReferences.cache
new file mode 100644
index 0000000..3be0a95
Binary files /dev/null and b/Lesson11/cw2/WpfApp1/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ
diff --git a/Lesson11/cw2/WpfApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Lesson11/cw2/WpfApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
new file mode 100644
index 0000000..4a4cde0
Binary files /dev/null and b/Lesson11/cw2/WpfApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ
diff --git a/Lesson11/cw2/WpfApp1/obj/Debug/MainWindow.baml b/Lesson11/cw2/WpfApp1/obj/Debug/MainWindow.baml
new file mode 100644
index 0000000..d957b25
Binary files /dev/null and b/Lesson11/cw2/WpfApp1/obj/Debug/MainWindow.baml differ
diff --git a/Lesson11/cw2/WpfApp1/obj/Debug/MainWindow.g.cs b/Lesson11/cw2/WpfApp1/obj/Debug/MainWindow.g.cs
new file mode 100644
index 0000000..0148a9b
--- /dev/null
+++ b/Lesson11/cw2/WpfApp1/obj/Debug/MainWindow.g.cs
@@ -0,0 +1,155 @@
+#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "0640A941E4E53B729B8EDF1D35ECE336BE0F4B377151321305B8FC32F2077693"
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using WpfApp1;
+
+
+namespace WpfApp1 {
+
+
+ ///
+ /// MainWindow
+ ///
+ public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+
+
+ #line 21 "..\..\MainWindow.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal System.Windows.Controls.TextBox InputOne;
+
+ #line default
+ #line hidden
+
+
+ #line 22 "..\..\MainWindow.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal System.Windows.Controls.TextBox Result;
+
+ #line default
+ #line hidden
+
+
+ #line 23 "..\..\MainWindow.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal System.Windows.Controls.TextBox InputTwo;
+
+ #line default
+ #line hidden
+
+ private bool _contentLoaded;
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ public void InitializeComponent() {
+ if (_contentLoaded) {
+ return;
+ }
+ _contentLoaded = true;
+ System.Uri resourceLocater = new System.Uri("/WpfApp1;component/mainwindow.xaml", System.UriKind.Relative);
+
+ #line 1 "..\..\MainWindow.xaml"
+ System.Windows.Application.LoadComponent(this, resourceLocater);
+
+ #line default
+ #line hidden
+ }
+
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+ switch (connectionId)
+ {
+ case 1:
+
+ #line 17 "..\..\MainWindow.xaml"
+ ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
+
+ #line default
+ #line hidden
+ return;
+ case 2:
+
+ #line 18 "..\..\MainWindow.xaml"
+ ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_2);
+
+ #line default
+ #line hidden
+ return;
+ case 3:
+
+ #line 19 "..\..\MainWindow.xaml"
+ ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);
+
+ #line default
+ #line hidden
+ return;
+ case 4:
+
+ #line 20 "..\..\MainWindow.xaml"
+ ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_3);
+
+ #line default
+ #line hidden
+ return;
+ case 5:
+ this.InputOne = ((System.Windows.Controls.TextBox)(target));
+
+ #line 21 "..\..\MainWindow.xaml"
+ this.InputOne.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_TextChanged);
+
+ #line default
+ #line hidden
+ return;
+ case 6:
+ this.Result = ((System.Windows.Controls.TextBox)(target));
+ return;
+ case 7:
+ this.InputTwo = ((System.Windows.Controls.TextBox)(target));
+
+ #line 23 "..\..\MainWindow.xaml"
+ this.InputTwo.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.InputTwo_TextChanged);
+
+ #line default
+ #line hidden
+ return;
+ }
+ this._contentLoaded = true;
+ }
+ }
+}
+
diff --git a/Lesson11/cw2/WpfApp1/obj/Debug/MainWindow.g.i.cs b/Lesson11/cw2/WpfApp1/obj/Debug/MainWindow.g.i.cs
new file mode 100644
index 0000000..0148a9b
--- /dev/null
+++ b/Lesson11/cw2/WpfApp1/obj/Debug/MainWindow.g.i.cs
@@ -0,0 +1,155 @@
+#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "0640A941E4E53B729B8EDF1D35ECE336BE0F4B377151321305B8FC32F2077693"
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using WpfApp1;
+
+
+namespace WpfApp1 {
+
+
+ ///
+ /// MainWindow
+ ///
+ public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+
+
+ #line 21 "..\..\MainWindow.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal System.Windows.Controls.TextBox InputOne;
+
+ #line default
+ #line hidden
+
+
+ #line 22 "..\..\MainWindow.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal System.Windows.Controls.TextBox Result;
+
+ #line default
+ #line hidden
+
+
+ #line 23 "..\..\MainWindow.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal System.Windows.Controls.TextBox InputTwo;
+
+ #line default
+ #line hidden
+
+ private bool _contentLoaded;
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ public void InitializeComponent() {
+ if (_contentLoaded) {
+ return;
+ }
+ _contentLoaded = true;
+ System.Uri resourceLocater = new System.Uri("/WpfApp1;component/mainwindow.xaml", System.UriKind.Relative);
+
+ #line 1 "..\..\MainWindow.xaml"
+ System.Windows.Application.LoadComponent(this, resourceLocater);
+
+ #line default
+ #line hidden
+ }
+
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+ switch (connectionId)
+ {
+ case 1:
+
+ #line 17 "..\..\MainWindow.xaml"
+ ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
+
+ #line default
+ #line hidden
+ return;
+ case 2:
+
+ #line 18 "..\..\MainWindow.xaml"
+ ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_2);
+
+ #line default
+ #line hidden
+ return;
+ case 3:
+
+ #line 19 "..\..\MainWindow.xaml"
+ ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);
+
+ #line default
+ #line hidden
+ return;
+ case 4:
+
+ #line 20 "..\..\MainWindow.xaml"
+ ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_3);
+
+ #line default
+ #line hidden
+ return;
+ case 5:
+ this.InputOne = ((System.Windows.Controls.TextBox)(target));
+
+ #line 21 "..\..\MainWindow.xaml"
+ this.InputOne.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_TextChanged);
+
+ #line default
+ #line hidden
+ return;
+ case 6:
+ this.Result = ((System.Windows.Controls.TextBox)(target));
+ return;
+ case 7:
+ this.InputTwo = ((System.Windows.Controls.TextBox)(target));
+
+ #line 23 "..\..\MainWindow.xaml"
+ this.InputTwo.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.InputTwo_TextChanged);
+
+ #line default
+ #line hidden
+ return;
+ }
+ this._contentLoaded = true;
+ }
+ }
+}
+
diff --git a/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1.Properties.Resources.resources b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1.Properties.Resources.resources
new file mode 100644
index 0000000..6c05a97
Binary files /dev/null and b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1.Properties.Resources.resources differ
diff --git a/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1.csproj.FileListAbsolute.txt b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1.csproj.FileListAbsolute.txt
new file mode 100644
index 0000000..bcca15c
--- /dev/null
+++ b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1.csproj.FileListAbsolute.txt
@@ -0,0 +1,14 @@
+C:\Users\ozzu\source\repos\Lesson11\cw2\WpfApp1\bin\Debug\WpfApp1.exe.config
+C:\Users\ozzu\source\repos\Lesson11\cw2\WpfApp1\bin\Debug\WpfApp1.exe
+C:\Users\ozzu\source\repos\Lesson11\cw2\WpfApp1\bin\Debug\WpfApp1.pdb
+C:\Users\ozzu\source\repos\Lesson11\cw2\WpfApp1\obj\Debug\WpfApp1.csprojAssemblyReference.cache
+C:\Users\ozzu\source\repos\Lesson11\cw2\WpfApp1\obj\Debug\MainWindow.g.cs
+C:\Users\ozzu\source\repos\Lesson11\cw2\WpfApp1\obj\Debug\App.g.cs
+C:\Users\ozzu\source\repos\Lesson11\cw2\WpfApp1\obj\Debug\WpfApp1_MarkupCompile.cache
+C:\Users\ozzu\source\repos\Lesson11\cw2\WpfApp1\obj\Debug\WpfApp1_MarkupCompile.lref
+C:\Users\ozzu\source\repos\Lesson11\cw2\WpfApp1\obj\Debug\MainWindow.baml
+C:\Users\ozzu\source\repos\Lesson11\cw2\WpfApp1\obj\Debug\WpfApp1.g.resources
+C:\Users\ozzu\source\repos\Lesson11\cw2\WpfApp1\obj\Debug\WpfApp1.Properties.Resources.resources
+C:\Users\ozzu\source\repos\Lesson11\cw2\WpfApp1\obj\Debug\WpfApp1.csproj.GenerateResource.cache
+C:\Users\ozzu\source\repos\Lesson11\cw2\WpfApp1\obj\Debug\WpfApp1.exe
+C:\Users\ozzu\source\repos\Lesson11\cw2\WpfApp1\obj\Debug\WpfApp1.pdb
diff --git a/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1.csproj.GenerateResource.cache b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1.csproj.GenerateResource.cache
new file mode 100644
index 0000000..c41109f
Binary files /dev/null and b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1.csproj.GenerateResource.cache differ
diff --git a/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1.csprojAssemblyReference.cache b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1.csprojAssemblyReference.cache
new file mode 100644
index 0000000..a2e1b3c
Binary files /dev/null and b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1.csprojAssemblyReference.cache differ
diff --git a/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1.exe b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1.exe
new file mode 100644
index 0000000..8388229
Binary files /dev/null and b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1.exe differ
diff --git a/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1.g.resources b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1.g.resources
new file mode 100644
index 0000000..332f268
Binary files /dev/null and b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1.g.resources differ
diff --git a/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1.pdb b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1.pdb
new file mode 100644
index 0000000..949b469
Binary files /dev/null and b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1.pdb differ
diff --git a/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1_MarkupCompile.cache b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1_MarkupCompile.cache
new file mode 100644
index 0000000..4b5ebc0
--- /dev/null
+++ b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1_MarkupCompile.cache
@@ -0,0 +1,20 @@
+WpfApp1
+
+
+winexe
+C#
+.cs
+C:\Users\ozzu\source\repos\Lesson11\cw2\WpfApp1\obj\Debug\
+WpfApp1
+none
+false
+DEBUG;TRACE
+C:\Users\ozzu\source\repos\Lesson11\cw2\WpfApp1\App.xaml
+11151548125
+
+5-2017746502
+13-1505183044
+MainWindow.xaml;
+
+False
+
diff --git a/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1_MarkupCompile.i.cache b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1_MarkupCompile.i.cache
new file mode 100644
index 0000000..8e4e16c
--- /dev/null
+++ b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1_MarkupCompile.i.cache
@@ -0,0 +1,20 @@
+WpfApp1
+
+
+winexe
+C#
+.cs
+C:\Users\ozzu\source\repos\Lesson11\cw2\WpfApp1\obj\Debug\
+WpfApp1
+none
+false
+DEBUG;TRACE
+C:\Users\ozzu\source\repos\Lesson11\cw2\WpfApp1\App.xaml
+11151548125
+
+6338337291
+13-1505183044
+MainWindow.xaml;
+
+True
+
diff --git a/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1_MarkupCompile.i.lref b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1_MarkupCompile.i.lref
new file mode 100644
index 0000000..7606eb5
--- /dev/null
+++ b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1_MarkupCompile.i.lref
@@ -0,0 +1,4 @@
+
+
+FC:\Users\ozzu\source\repos\Lesson11\cw2\WpfApp1\MainWindow.xaml;;
+
diff --git a/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1_MarkupCompile.lref b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1_MarkupCompile.lref
new file mode 100644
index 0000000..7606eb5
--- /dev/null
+++ b/Lesson11/cw2/WpfApp1/obj/Debug/WpfApp1_MarkupCompile.lref
@@ -0,0 +1,4 @@
+
+
+FC:\Users\ozzu\source\repos\Lesson11\cw2\WpfApp1\MainWindow.xaml;;
+
diff --git a/Lesson11/cw2/cw2.sln b/Lesson11/cw2/cw2.sln
new file mode 100644
index 0000000..dab05a2
--- /dev/null
+++ b/Lesson11/cw2/cw2.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.29609.76
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfApp1", "WpfApp1\WpfApp1.csproj", "{D5AE6267-6786-4782-B465-988C6A561166}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {D5AE6267-6786-4782-B465-988C6A561166}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D5AE6267-6786-4782-B465-988C6A561166}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D5AE6267-6786-4782-B465-988C6A561166}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D5AE6267-6786-4782-B465-988C6A561166}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {A01E8058-3B24-4B46-B269-A7304AE1E47A}
+ EndGlobalSection
+EndGlobal
diff --git "a/Lesson6/Lista na \304\207w. 6.docx" "b/Lesson6/Lista na \304\207w. 6.docx"
old mode 100755
new mode 100644
diff --git a/Lesson6/abstractstorm.txt b/Lesson6/abstractstorm.txt
old mode 100755
new mode 100644
diff --git a/Library/LibrarryLesson11.sln b/Library/LibrarryLesson11.sln
new file mode 100644
index 0000000..8087b56
--- /dev/null
+++ b/Library/LibrarryLesson11.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.29709.97
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibraryLesson11", "LibrarryLesson11\LibraryLesson11.csproj", "{6A245BF4-4D8F-48F1-A831-277C8B6F1F1C}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {6A245BF4-4D8F-48F1-A831-277C8B6F1F1C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6A245BF4-4D8F-48F1-A831-277C8B6F1F1C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6A245BF4-4D8F-48F1-A831-277C8B6F1F1C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6A245BF4-4D8F-48F1-A831-277C8B6F1F1C}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {192BA97D-F484-4B26-8015-4E09239E02E7}
+ EndGlobalSection
+EndGlobal
diff --git a/Library/LibrarryLesson11/AddingBook.xaml b/Library/LibrarryLesson11/AddingBook.xaml
new file mode 100644
index 0000000..f830a94
--- /dev/null
+++ b/Library/LibrarryLesson11/AddingBook.xaml
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Library/LibrarryLesson11/AddingBook.xaml.cs b/Library/LibrarryLesson11/AddingBook.xaml.cs
new file mode 100644
index 0000000..857745f
--- /dev/null
+++ b/Library/LibrarryLesson11/AddingBook.xaml.cs
@@ -0,0 +1,49 @@
+using System.Collections.Generic;
+using System.Windows;
+
+namespace LibrarryLesson11
+{
+ ///
+ /// Interaction logic for AddingBook.xaml
+ ///
+ public partial class AddingBook : Window
+ {
+ public AddingBook()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Click(object sender, RoutedEventArgs e)
+ {
+
+ var new_catalogue = new Catalogue();
+
+ if (!(authorfirstname_tb.Text == "" || asurname_tb.Text == "" || btitle_tb.Text == "" ||
+ id_name_tb.Text == "" || bpublisher_tb.Text == "" || yop_tb.Text == "" || nop_tb.Text == ""))
+ {
+ int.TryParse(yop_tb.Text, out var output);
+ int.TryParse(nop_tb.Text, out var output2);
+ int.TryParse(id_name_tb.Text, out var output3);
+
+ if (output3 > 0 || output2 > 0 || output > 0)
+ {
+ MainWindow.Library.ListOfPositions.Add(new Book(authorfirstname_tb.Text, asurname_tb.Text,
+ btitle_tb.Text,
+ output2, bpublisher_tb.Text, output,
+ output3));
+ MessageBox.Show("Book has been added successfully.");
+ }
+ else
+ MessageBox.Show("Invalid input with number fields.");
+ }
+ else
+ MessageBox.Show("You should fill all text boxes.");
+
+ }
+
+ private void exit_button_click(object sender, RoutedEventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/Library/LibrarryLesson11/AddingJournal.xaml b/Library/LibrarryLesson11/AddingJournal.xaml
new file mode 100644
index 0000000..776b4e8
--- /dev/null
+++ b/Library/LibrarryLesson11/AddingJournal.xaml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Library/LibrarryLesson11/AddingJournal.xaml.cs b/Library/LibrarryLesson11/AddingJournal.xaml.cs
new file mode 100644
index 0000000..349b466
--- /dev/null
+++ b/Library/LibrarryLesson11/AddingJournal.xaml.cs
@@ -0,0 +1,56 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace LibrarryLesson11
+{
+ ///
+ /// Interaction logic for AddingJournal.xaml
+ ///
+ public partial class AddingJournal : Window
+ {
+ public AddingJournal()
+ {
+ InitializeComponent();
+ }
+
+ private void exit_button(object sender, RoutedEventArgs e)
+ {
+ this.Close();
+ }
+
+ private void add_button_Click(object sender, RoutedEventArgs e)
+ {
+
+ if (!(jtitle_tb.Text == "" || jpublisher_tb.Text == "" || jyear_of_publish.Text == "" ||
+ jnumber_tb.Text == "")) {
+ int.TryParse(jyear_of_publish.Text, out var output);
+ int.TryParse(jnumber_tb.Text, out var output2);
+ int.TryParse(id_tb.Text, out var output3);
+
+ if (output2 > 0 || output > 0 || output3 > 0)
+ {
+ MainWindow.Library.ListOfPositions.Add(new Journal(jtitle_tb.Text, output3, jpublisher_tb.Text, output, output2));;
+ MessageBox.Show("Journal has been added successfully.");
+ }
+ else
+ MessageBox.Show("Invalid input with number fields.");
+ }
+ else
+ MessageBox.Show("You should fill all text boxes.");
+
+ if (MainWindow.Library.ListOfPositions == null) //nie wiem czy potrzebne spytaj szarego xD
+ MessageBox.Show("List is empty, failed to add new journals.");
+ }
+ }
+}
diff --git a/Library/LibrarryLesson11/App.config b/Library/LibrarryLesson11/App.config
new file mode 100644
index 0000000..56efbc7
--- /dev/null
+++ b/Library/LibrarryLesson11/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Library/LibrarryLesson11/App.xaml b/Library/LibrarryLesson11/App.xaml
new file mode 100644
index 0000000..fc4b870
--- /dev/null
+++ b/Library/LibrarryLesson11/App.xaml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/Library/LibrarryLesson11/App.xaml.cs b/Library/LibrarryLesson11/App.xaml.cs
new file mode 100644
index 0000000..1323b22
--- /dev/null
+++ b/Library/LibrarryLesson11/App.xaml.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows;
+
+namespace LibrarryLesson11
+{
+ ///
+ /// Interaction logic for App.xaml
+ ///
+ public partial class App : Application
+ {
+ }
+}
diff --git a/Library/LibrarryLesson11/Author.cs b/Library/LibrarryLesson11/Author.cs
new file mode 100644
index 0000000..cc3cbbd
--- /dev/null
+++ b/Library/LibrarryLesson11/Author.cs
@@ -0,0 +1,21 @@
+
+namespace LibrarryLesson11
+{
+ class Author
+ {
+ protected internal string firstname;
+ protected internal string secondname;
+
+ public Author()
+ {
+
+ }
+
+ public Author(string firstname, string secondname)
+ {
+ this.firstname = firstname;
+ this.secondname = secondname;
+ }
+
+ }
+}
diff --git a/Library/LibrarryLesson11/Book.cs b/Library/LibrarryLesson11/Book.cs
new file mode 100644
index 0000000..c8ecced
--- /dev/null
+++ b/Library/LibrarryLesson11/Book.cs
@@ -0,0 +1,29 @@
+namespace LibrarryLesson11
+{
+ class Book : Position
+ {
+ private int _page_numbers;
+ protected Author _author;
+
+ public Book()
+ {
+
+ }
+
+ public Book(string firstname, string second_name, string title, int id, string publisher, int yearOfPublish,
+ int _page_numbers)
+ {
+ _author = new Author(firstname, second_name);
+ this.title = title;
+ this.id = id;
+ this.publisher = publisher;
+ this.yearOfPublish = yearOfPublish;
+ this._page_numbers = _page_numbers;
+ }
+
+ public override string ToString() => "Firstname: " + this._author.firstname + " Surname: " + this._author.secondname + " Title: " + this.title +
+ " ID: " + this.id + " Publisher: " + this.publisher + " Year of publish: " +
+ this.yearOfPublish + " Page of numbers: " + _page_numbers;
+
+ }
+}
diff --git a/Library/LibrarryLesson11/Catalogue.cs b/Library/LibrarryLesson11/Catalogue.cs
new file mode 100644
index 0000000..3f00878
--- /dev/null
+++ b/Library/LibrarryLesson11/Catalogue.cs
@@ -0,0 +1,45 @@
+using System.Collections.Generic;
+using System.Linq;
+
+
+namespace LibrarryLesson11
+{
+ public class Catalogue : ICatalogueManagement
+ {
+ public List ListOfPositions = new List();
+
+ public void AddPosition(string firstname, string secondname, string title, int id, string publisher,
+ int yearOfPublish, int numberOfPages)
+ {
+ ListOfPositions.Add(new Book(firstname, secondname, title, id, publisher, yearOfPublish, numberOfPages));
+ }
+ public void AddPosition(string title, string publisher, int yearOfPublish, int id, int number)
+ {
+ ListOfPositions.Add(new Journal(title, id, publisher, yearOfPublish, number));
+ }
+
+ public string SearchByTitle(string title)
+ {
+ var title_books = ListOfPositions.Where(a => a.GetTitle() == title).ToList();
+
+ return title_books.Count > 0 ? string.Join("\n ", title_books) : "Given title could not be found.";
+
+ }
+
+ public string SearchById(int id)
+ {
+ var id_books = ListOfPositions.Where(a => a.GetId() == id).ToList();
+
+ //return id_books.Count > 0 ? id_books[0].ToString() : "Given title could not be found.";
+ return id_books != null ? string.Join("\n", id_books) : "ID could not be found.";
+ }
+
+ public void Test()
+ {
+ AddPosition("Gazeta Olsztyńska", "Edytor", 1992, 7, 200);
+ AddPosition("Gazeta Wyborcza", "Agora", 2010, 2, 123);
+ AddPosition("Henryk", "Sienkiewicz", "Krzyżacy", 23, "Znak", 2010, 220);
+ AddPosition("Henryk", "Sienkiewicz", "Krzyżacy", 24, "Znak", 2011, 220);
+ }
+ }
+}
diff --git a/Library/LibrarryLesson11/ICatalogueManagement.cs b/Library/LibrarryLesson11/ICatalogueManagement.cs
new file mode 100644
index 0000000..2e4b510
--- /dev/null
+++ b/Library/LibrarryLesson11/ICatalogueManagement.cs
@@ -0,0 +1,9 @@
+
+namespace LibrarryLesson11
+{
+ interface ICatalogueManagement
+ {
+ string SearchByTitle(string title);
+ string SearchById(int id);
+ }
+}
diff --git a/Library/LibrarryLesson11/Journal.cs b/Library/LibrarryLesson11/Journal.cs
new file mode 100644
index 0000000..ea3864f
--- /dev/null
+++ b/Library/LibrarryLesson11/Journal.cs
@@ -0,0 +1,27 @@
+
+namespace LibrarryLesson11
+{
+ class Journal : Position
+ {
+ private int number;
+
+ public Journal()
+ {
+
+ }
+
+ public Journal(string title, int id, string publisher, int yearOfPublish, int number) : base(title, id, publisher, yearOfPublish)
+ {
+ this.title = title;
+ this.id = id;
+ this.publisher = publisher;
+ this.yearOfPublish = yearOfPublish;
+ this.number = number;
+ }
+
+ public override string ToString() => "Title: " + this.title + " ID: " + this.id + " Publisher: " +
+ this.publisher + " Year of publish: " + this.yearOfPublish + " Number: " +
+ this.number;
+
+ }
+}
diff --git a/Library/LibrarryLesson11/LibraryLesson11.csproj b/Library/LibrarryLesson11/LibraryLesson11.csproj
new file mode 100644
index 0000000..ad617f9
--- /dev/null
+++ b/Library/LibrarryLesson11/LibraryLesson11.csproj
@@ -0,0 +1,125 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {6A245BF4-4D8F-48F1-A831-277C8B6F1F1C}
+ WinExe
+ LibrarryLesson11
+ LibrarryLesson11
+ v4.7.2
+ 512
+ {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ 4
+ true
+ true
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+ 4.0
+
+
+
+
+
+
+
+ MSBuild:Compile
+ Designer
+
+
+ SearchTitle.xaml
+
+
+ Designer
+ MSBuild:Compile
+
+
+ Designer
+ MSBuild:Compile
+
+
+ MSBuild:Compile
+ Designer
+
+
+ AddingBook.xaml
+
+
+ AddingJournal.xaml
+
+
+ App.xaml
+ Code
+
+
+
+
+
+
+
+ MainWindow.xaml
+ Code
+
+
+ Designer
+ MSBuild:Compile
+
+
+
+
+
+ Code
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Library/LibrarryLesson11/MainWindow.xaml b/Library/LibrarryLesson11/MainWindow.xaml
new file mode 100644
index 0000000..ae8aa4a
--- /dev/null
+++ b/Library/LibrarryLesson11/MainWindow.xaml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Library/LibrarryLesson11/MainWindow.xaml.cs b/Library/LibrarryLesson11/MainWindow.xaml.cs
new file mode 100644
index 0000000..9e1e9dc
--- /dev/null
+++ b/Library/LibrarryLesson11/MainWindow.xaml.cs
@@ -0,0 +1,54 @@
+
+using System.Windows;
+
+namespace LibrarryLesson11
+{
+ ///
+ /// Interaction logic for MainWindow.xaml
+ ///
+ public partial class MainWindow : Window
+ {
+ public static Catalogue Library = new Catalogue();
+ public MainWindow()
+ {
+ InitializeComponent();
+
+ Library.Test();
+
+ MessageBox.Show(Library.SearchByTitle("Krzyżacy"));
+
+ MessageBox.Show(Library.SearchById(7));
+
+ }
+
+ private void addBook_Click(object sender, RoutedEventArgs e)
+ {
+ AddingBook subWindow = new AddingBook();
+ subWindow.Show();
+ }
+
+ private void add_journal_Click(object sender, RoutedEventArgs e)
+ {
+ AddingJournal journal = new AddingJournal();
+ journal.Show();
+ }
+
+ private void search_by_id_Click(object sender, RoutedEventArgs e)
+ {
+ var title = new SearchTitle();
+ title.Show();
+ }
+
+ private void search_by_title_Click(object sender, RoutedEventArgs e)
+ {
+
+ if (search_keyword_tb.Text == "")
+ MessageBox.Show("Nothing to search here. Please enter some keyword into box.");
+ else
+ {
+ MessageBox.Show(Library.SearchByTitle(search_keyword_tb.Text));
+ }
+
+ }
+ }
+}
diff --git a/Library/LibrarryLesson11/Position.cs b/Library/LibrarryLesson11/Position.cs
new file mode 100644
index 0000000..2301475
--- /dev/null
+++ b/Library/LibrarryLesson11/Position.cs
@@ -0,0 +1,26 @@
+namespace LibrarryLesson11
+{
+ public abstract class Position
+ {
+ protected string title;
+ protected int id;
+ protected string publisher;
+ protected int yearOfPublish;
+
+ protected Position()
+ {
+
+ }
+
+ protected Position(string title, int id, string publisher, int yearOfPublish)
+ {
+ this.title = title;
+ this.id = id;
+ this.publisher = publisher;
+ this.yearOfPublish = yearOfPublish;
+ }
+
+ public virtual string GetTitle() => this.title;
+ public virtual int GetId() => this.id;
+ }
+}
diff --git a/Library/LibrarryLesson11/Properties/AssemblyInfo.cs b/Library/LibrarryLesson11/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..fcda926
--- /dev/null
+++ b/Library/LibrarryLesson11/Properties/AssemblyInfo.cs
@@ -0,0 +1,55 @@
+using System.Reflection;
+using System.Resources;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Windows;
+
+// 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("LibrarryLesson11")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("LibrarryLesson11")]
+[assembly: AssemblyCopyright("Copyright © 2020")]
+[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)]
+
+//In order to begin building localizable applications, set
+//CultureYouAreCodingWith in your .csproj file
+//inside a . For example, if you are using US english
+//in your source files, set the to en-US. Then uncomment
+//the NeutralResourceLanguage attribute below. Update the "en-US" in
+//the line below to match the UICulture setting in the project file.
+
+//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
+
+
+[assembly: ThemeInfo(
+ ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
+ //(used if a resource is not found in the page,
+ // or application resource dictionaries)
+ ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
+ //(used if a resource is not found in the page,
+ // app, or any theme specific resource dictionaries)
+)]
+
+
+// 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/Library/LibrarryLesson11/Properties/Resources.Designer.cs b/Library/LibrarryLesson11/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..9592342
--- /dev/null
+++ b/Library/LibrarryLesson11/Properties/Resources.Designer.cs
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+//
+// 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 LibrarryLesson11.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("LibrarryLesson11.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/Library/LibrarryLesson11/Properties/Resources.resx b/Library/LibrarryLesson11/Properties/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/Library/LibrarryLesson11/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/Library/LibrarryLesson11/Properties/Settings.Designer.cs b/Library/LibrarryLesson11/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..26c0995
--- /dev/null
+++ b/Library/LibrarryLesson11/Properties/Settings.Designer.cs
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+//
+// 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 LibrarryLesson11.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/Library/LibrarryLesson11/Properties/Settings.settings b/Library/LibrarryLesson11/Properties/Settings.settings
new file mode 100644
index 0000000..033d7a5
--- /dev/null
+++ b/Library/LibrarryLesson11/Properties/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Library/LibrarryLesson11/SearchTitle.xaml b/Library/LibrarryLesson11/SearchTitle.xaml
new file mode 100644
index 0000000..9cc994c
--- /dev/null
+++ b/Library/LibrarryLesson11/SearchTitle.xaml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
diff --git a/Library/LibrarryLesson11/SearchTitle.xaml.cs b/Library/LibrarryLesson11/SearchTitle.xaml.cs
new file mode 100644
index 0000000..159dd0e
--- /dev/null
+++ b/Library/LibrarryLesson11/SearchTitle.xaml.cs
@@ -0,0 +1,40 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace LibrarryLesson11
+{
+ ///
+ /// Interaction logic for SearchTitle.xaml
+ ///
+ public partial class SearchTitle : Window
+ {
+ public SearchTitle()
+ {
+ InitializeComponent();
+ }
+
+ private void Close_search_CLick(object sender, RoutedEventArgs e)
+ {
+ this.Close();
+ }
+
+ private void SearchById_Click(object sender, RoutedEventArgs e)
+ {
+
+ int.TryParse(id_textbox.Text, out var output);
+
+ MessageBox.Show(output > 0 ? MainWindow.Library.SearchById(output) : "Given ID doesn't exist.");
+ }
+ }
+}