From a023f6c003732eeb42d521b3fb9f1248f7d22fa7 Mon Sep 17 00:00:00 2001 From: Michal Starski Date: Sun, 13 Jan 2019 19:50:16 +0100 Subject: [PATCH] removed frontend files --- LICENSE | 8 - Magazyn_Client/.gitignore | 341 ------------------ Magazyn_Client/Magazyn.sln | 25 -- Magazyn_Client/Magazyn/App.config | 6 - Magazyn_Client/Magazyn/App.xaml | 9 - Magazyn_Client/Magazyn/App.xaml.cs | 17 - Magazyn_Client/Magazyn/DataModels/Fruit.cs | 66 ---- .../Magazyn/DataModels/WarehousePrice.cs | 27 -- Magazyn_Client/Magazyn/Images/add.png | Bin 215 -> 0 bytes Magazyn_Client/Magazyn/Images/sub.png | Bin 197 -> 0 bytes Magazyn_Client/Magazyn/Magazyn.csproj | 121 ------- Magazyn_Client/Magazyn/MainWindow.xaml | 15 - Magazyn_Client/Magazyn/MainWindow.xaml.cs | 88 ----- .../Magazyn/Properties/AssemblyInfo.cs | 55 --- .../Magazyn/Properties/Resources.Designer.cs | 71 ---- .../Magazyn/Properties/Resources.resx | 117 ------ .../Magazyn/Properties/Settings.Designer.cs | 30 -- .../Magazyn/Properties/Settings.settings | 7 - Magazyn_Client/Magazyn/Views/FruitView.xaml | 23 -- .../Magazyn/Views/FruitView.xaml.cs | 72 ---- .../Magazyn/Windows/AmountWindow.xaml | 15 - .../Magazyn/Windows/AmountWindow.xaml.cs | 53 --- Magazyn_Client/Magazyn/packages.config | 4 - README.md | 118 ------ 24 files changed, 1288 deletions(-) delete mode 100644 LICENSE delete mode 100644 Magazyn_Client/.gitignore delete mode 100644 Magazyn_Client/Magazyn.sln delete mode 100644 Magazyn_Client/Magazyn/App.config delete mode 100644 Magazyn_Client/Magazyn/App.xaml delete mode 100644 Magazyn_Client/Magazyn/App.xaml.cs delete mode 100644 Magazyn_Client/Magazyn/DataModels/Fruit.cs delete mode 100644 Magazyn_Client/Magazyn/DataModels/WarehousePrice.cs delete mode 100644 Magazyn_Client/Magazyn/Images/add.png delete mode 100644 Magazyn_Client/Magazyn/Images/sub.png delete mode 100644 Magazyn_Client/Magazyn/Magazyn.csproj delete mode 100644 Magazyn_Client/Magazyn/MainWindow.xaml delete mode 100644 Magazyn_Client/Magazyn/MainWindow.xaml.cs delete mode 100644 Magazyn_Client/Magazyn/Properties/AssemblyInfo.cs delete mode 100644 Magazyn_Client/Magazyn/Properties/Resources.Designer.cs delete mode 100644 Magazyn_Client/Magazyn/Properties/Resources.resx delete mode 100644 Magazyn_Client/Magazyn/Properties/Settings.Designer.cs delete mode 100644 Magazyn_Client/Magazyn/Properties/Settings.settings delete mode 100644 Magazyn_Client/Magazyn/Views/FruitView.xaml delete mode 100644 Magazyn_Client/Magazyn/Views/FruitView.xaml.cs delete mode 100644 Magazyn_Client/Magazyn/Windows/AmountWindow.xaml delete mode 100644 Magazyn_Client/Magazyn/Windows/AmountWindow.xaml.cs delete mode 100644 Magazyn_Client/Magazyn/packages.config delete mode 100644 README.md diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 472ac23..0000000 --- a/LICENSE +++ /dev/null @@ -1,8 +0,0 @@ -MIT License -Copyright (c) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Magazyn_Client/.gitignore b/Magazyn_Client/.gitignore deleted file mode 100644 index 84c9832..0000000 --- a/Magazyn_Client/.gitignore +++ /dev/null @@ -1,341 +0,0 @@ -## 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 - -# 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/ - -# 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 - -# 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 - -# JustCode is a .NET coding add-in -.JustCode - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# AxoCover is a Code Coverage Tool -.axoCover/* -!.axoCover/settings.json - -# 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 -# 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 - -# 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/ -# ASP.NET Core default setup: bower directory is configured as wwwroot/lib/ and bower restore is true -**/wwwroot/lib/ - -# 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 - -# 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/ - -# JetBrains Rider -.idea/ -*.sln.iml - -# 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 \ No newline at end of file diff --git a/Magazyn_Client/Magazyn.sln b/Magazyn_Client/Magazyn.sln deleted file mode 100644 index 741d861..0000000 --- a/Magazyn_Client/Magazyn.sln +++ /dev/null @@ -1,25 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.26730.15 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Magazyn", "Magazyn\Magazyn.csproj", "{C50EC6F3-86E6-405C-991F-1B4157C04B34}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {C50EC6F3-86E6-405C-991F-1B4157C04B34}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C50EC6F3-86E6-405C-991F-1B4157C04B34}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C50EC6F3-86E6-405C-991F-1B4157C04B34}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C50EC6F3-86E6-405C-991F-1B4157C04B34}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {BD938214-689F-4C4B-846E-9D7E3A4CD156} - EndGlobalSection -EndGlobal diff --git a/Magazyn_Client/Magazyn/App.config b/Magazyn_Client/Magazyn/App.config deleted file mode 100644 index 00bfd11..0000000 --- a/Magazyn_Client/Magazyn/App.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/Magazyn_Client/Magazyn/App.xaml b/Magazyn_Client/Magazyn/App.xaml deleted file mode 100644 index 4ce9918..0000000 --- a/Magazyn_Client/Magazyn/App.xaml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - diff --git a/Magazyn_Client/Magazyn/App.xaml.cs b/Magazyn_Client/Magazyn/App.xaml.cs deleted file mode 100644 index 4461381..0000000 --- a/Magazyn_Client/Magazyn/App.xaml.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Configuration; -using System.Data; -using System.Linq; -using System.Threading.Tasks; -using System.Windows; - -namespace Magazyn -{ - /// - /// Interaction logic for App.xaml - /// - public partial class App : Application - { - } -} diff --git a/Magazyn_Client/Magazyn/DataModels/Fruit.cs b/Magazyn_Client/Magazyn/DataModels/Fruit.cs deleted file mode 100644 index 6c97d6a..0000000 --- a/Magazyn_Client/Magazyn/DataModels/Fruit.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Magazyn.DataModels -{ - public class Fruit - { - int id; - string name; - int quantity; - float price; - string imageLink; - - public int Id - { - get - { - return id; - } - } - - public string Name - { - get - { - return name; - } - } - - public int Quantity - { - get - { - return quantity; - } - } - - public float Price - { - get - { - return price; - } - } - - public string ImageLink - { - get - { - return imageLink; - } - } - - public Fruit(int id, string name, int quantity, float price, string imageLink) - { - this.id = id; - this.name = name; - this.quantity = quantity; - this.price = price; - this.imageLink = imageLink; - } - } -} diff --git a/Magazyn_Client/Magazyn/DataModels/WarehousePrice.cs b/Magazyn_Client/Magazyn/DataModels/WarehousePrice.cs deleted file mode 100644 index 93c6173..0000000 --- a/Magazyn_Client/Magazyn/DataModels/WarehousePrice.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Magazyn.DataModels -{ - class WarehousePrice - { - float price; - - public float Price - { - get - { - return price; - } - } - - public WarehousePrice( [JsonProperty("price-of-all")] float price) - { - this.price = price; - } - } -} diff --git a/Magazyn_Client/Magazyn/Images/add.png b/Magazyn_Client/Magazyn/Images/add.png deleted file mode 100644 index eb457bc6cee334c177ed94b6ecce1e0104df4e77..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 215 zcmeAS@N?(olHy`uVBq!ia0vp^JRr=$1|-8uW1a&kmUKs7M+SzC{oH>NS%G}c0*}aI z1_r)EAj~ML;ne^Xlq_+LC<)F_D=AMbN@XZW%*-p%%S$a$Fwry6Gc-5Oo1Y9+6yoXP z7@`rpwQnP*gCY-W?2%{ZA8!&{_vLy;k&{A}j*gC>$DU>tPw9Bwrc(afOdJ1J3bK`j=QYNKKJ*Z{qn5d&!%23rl!Rn2v1<-s3Pgg&ebxsLQ E0BN&9asU7T diff --git a/Magazyn_Client/Magazyn/Images/sub.png b/Magazyn_Client/Magazyn/Images/sub.png deleted file mode 100644 index aab09d51f5384a49e5e275fd222b3933438f695e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 197 zcmeAS@N?(olHy`uVBq!ia0vp^JRr=$1|-8uW1a&kmUKs7M+SzC{oH>NS%G}c0*}aI z1_r)EAj~ML;ne^Xlq_+LC<)F_D=AMbN@XZW%*-p%%S$a$Fwry6Gc-5Oo1Y9+ - - - - Debug - AnyCPU - {C50EC6F3-86E6-405C-991F-1B4157C04B34} - WinExe - Magazyn - Magazyn - v4.6.1 - 512 - {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - 4 - true - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll - - - - - - - - - - - 4.0 - - - - - - - - MSBuild:Compile - Designer - - - - - FruitView.xaml - - - AmountWindow.xaml - - - MSBuild:Compile - Designer - - - App.xaml - Code - - - MainWindow.xaml - Code - - - Designer - MSBuild:Compile - - - 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/Magazyn_Client/Magazyn/MainWindow.xaml b/Magazyn_Client/Magazyn/MainWindow.xaml deleted file mode 100644 index b9f660d..0000000 --- a/Magazyn_Client/Magazyn/MainWindow.xaml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - diff --git a/Magazyn_Client/Magazyn/Views/FruitView.xaml.cs b/Magazyn_Client/Magazyn/Views/FruitView.xaml.cs deleted file mode 100644 index 2c25e01..0000000 --- a/Magazyn_Client/Magazyn/Views/FruitView.xaml.cs +++ /dev/null @@ -1,72 +0,0 @@ -using Magazyn.DataModels; -using Magazyn.Windows; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Net; -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 Magazyn.Views -{ - /// - /// Interaction logic for FruitView.xaml - /// - public partial class FruitView : UserControl - { - Fruit fruit; - - public delegate void ChangingAmountOfFruits(int amountChanged, Fruit fruit); - public event ChangingAmountOfFruits SaveChangingAmountOfFruits; - - public FruitView(Fruit fruit) - { - InitializeComponent(); - - this.fruit = fruit; - - fruitName.Text = fruit.Name; - fruitAmount.Text = fruit.Quantity.ToString(); - fruitPrice.Text = fruit.Price.ToString(); - allPrice.Text = (fruit.Quantity * fruit.Price).ToString(); - - try - { - imges.Source = new BitmapImage(new Uri(fruit.ImageLink)); - } - catch (Exception ex) - { - } - - } - - private void subButton_Click(object sender, RoutedEventArgs e) - { - AmountWindow window = new AmountWindow(fruit, -1); - window.SaveChangingAmountOfFruits += WindowSaveChangingAmountOfFruits; - window.Show(); - } - - private void addButton_Click(object sender, RoutedEventArgs e) - { - AmountWindow window = new AmountWindow(fruit, 1); - window.SaveChangingAmountOfFruits += WindowSaveChangingAmountOfFruits; - window.Show(); - } - - private void WindowSaveChangingAmountOfFruits(int amountChanged) - { - SaveChangingAmountOfFruits.Invoke(amountChanged, fruit); - } - } -} diff --git a/Magazyn_Client/Magazyn/Windows/AmountWindow.xaml b/Magazyn_Client/Magazyn/Windows/AmountWindow.xaml deleted file mode 100644 index ea7b7ef..0000000 --- a/Magazyn_Client/Magazyn/Windows/AmountWindow.xaml +++ /dev/null @@ -1,15 +0,0 @@ - - - - -