Prototyp projektu

This commit is contained in:
s444460 2020-10-27 23:04:36 +01:00
parent 7ee92090d7
commit 1beef25cb3
28 changed files with 1649 additions and 0 deletions

View File

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

120
VendingMachine/Automat.cs Normal file
View File

@ -0,0 +1,120 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VendingMachine
{
class Automat
{
Dictionary<string, int> zawartosc;
float stan;
float stanKarty;
bool isCard;
public Automat(Produkt[] a,Portfel b)
{
zawartosc = new Dictionary<string, int>();
foreach(Produkt i in a)
{
zawartosc.Add(i.getNazwa(), 10);
}
stan = 0;
stanKarty = b.getBalance();
isCard = false;
}
public void addDictValue(string key, int value)
{
zawartosc.Add(key, value);
}
public void setDictValue(string key, int value)
{
zawartosc[key] = value;
}
public Dictionary<string,int> getDict()
{
return zawartosc;
}
public void setBalance(float a)
{
stan = a;
}
public float buyProduct(Produkt i,Portfel b)
{
if(isCard == true)
{
isCard = false;
if (zawartosc[i.getNazwa()] <= 0)
{
return -2;
}
if (i.getCena() < b.getBalance())
{
zawartosc[i.getNazwa()] = zawartosc[i.getNazwa()] - 1;
float rest = stanKarty - i.getCena();
stanKarty = stanKarty - i.getCena();
b.setBalance(stanKarty);
stan = 0;
return rest;
}
else
{
return -1;
}
}
else
{
if (zawartosc[i.getNazwa()] <= 0)
{
return -2;
}
if (i.getCena() < stan)
{
zawartosc[i.getNazwa()] = zawartosc[i.getNazwa()] - 1;
float rest = stan - i.getCena();
stan = 0;
return rest;
}
else
{
return -1;
}
}
}
public void restock()
{
try
{
foreach (KeyValuePair<string, int> i in zawartosc)
{
zawartosc[i.Key] = 10;
}
}
catch (InvalidOperationException)
{
}
}
public float getBalance()
{
return stan;
}
public void setCardBalance(float a)
{
stanKarty = a;
}
public float getCardBalance()
{
return stanKarty;
}
public bool getCard()
{
return isCard;
}
public void setCard(bool a)
{
isCard = a;
}
}
}

473
VendingMachine/Form1.Designer.cs generated Normal file
View File

@ -0,0 +1,473 @@
namespace VendingMachine
{
partial class Form1
{
/// <summary>
/// Wymagana zmienna projektanta.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Wyczyść wszystkie używane zasoby.
/// </summary>
/// <param name="disposing">prawda, jeżeli zarządzane zasoby powinny zostać zlikwidowane; Fałsz w przeciwnym wypadku.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Kod generowany przez Projektanta formularzy systemu Windows
/// <summary>
/// Metoda wymagana do obsługi projektanta — nie należy modyfikować
/// jej zawartości w edytorze kodu.
/// </summary>
private void InitializeComponent()
{
this.BalanceLabel = new System.Windows.Forms.Label();
this.balanceBox = new System.Windows.Forms.TextBox();
this.screen = new System.Windows.Forms.TextBox();
this.fiveButton = new System.Windows.Forms.Button();
this.twoButton = new System.Windows.Forms.Button();
this.oneButton = new System.Windows.Forms.Button();
this.fiftyButton = new System.Windows.Forms.Button();
this.twentyButton = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button();
this.button9 = new System.Windows.Forms.Button();
this.button10 = new System.Windows.Forms.Button();
this.button11 = new System.Windows.Forms.Button();
this.button12 = new System.Windows.Forms.Button();
this.button13 = new System.Windows.Forms.Button();
this.button14 = new System.Windows.Forms.Button();
this.button15 = new System.Windows.Forms.Button();
this.button16 = new System.Windows.Forms.Button();
this.button17 = new System.Windows.Forms.Button();
this.button18 = new System.Windows.Forms.Button();
this.button19 = new System.Windows.Forms.Button();
this.button20 = new System.Windows.Forms.Button();
this.button21 = new System.Windows.Forms.Button();
this.cardButton = new System.Windows.Forms.Button();
this.button22 = new System.Windows.Forms.Button();
this.restBox = new System.Windows.Forms.TextBox();
this.restTextBox = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// BalanceLabel
//
this.BalanceLabel.AutoSize = true;
this.BalanceLabel.Location = new System.Drawing.Point(351, 19);
this.BalanceLabel.Name = "BalanceLabel";
this.BalanceLabel.Size = new System.Drawing.Size(59, 13);
this.BalanceLabel.TabIndex = 1;
this.BalanceLabel.Text = "Stan konta";
this.BalanceLabel.Click += new System.EventHandler(this.label2_Click);
//
// balanceBox
//
this.balanceBox.Location = new System.Drawing.Point(349, 38);
this.balanceBox.Name = "balanceBox";
this.balanceBox.ReadOnly = true;
this.balanceBox.Size = new System.Drawing.Size(63, 20);
this.balanceBox.TabIndex = 2;
this.balanceBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
//
// screen
//
this.screen.Location = new System.Drawing.Point(12, 12);
this.screen.Name = "screen";
this.screen.ReadOnly = true;
this.screen.Size = new System.Drawing.Size(318, 20);
this.screen.TabIndex = 4;
this.screen.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// fiveButton
//
this.fiveButton.Location = new System.Drawing.Point(340, 64);
this.fiveButton.Name = "fiveButton";
this.fiveButton.Size = new System.Drawing.Size(35, 23);
this.fiveButton.TabIndex = 5;
this.fiveButton.Text = "5zl";
this.fiveButton.UseVisualStyleBackColor = true;
this.fiveButton.Click += new System.EventHandler(this.fiveButton_Click);
//
// twoButton
//
this.twoButton.Location = new System.Drawing.Point(384, 64);
this.twoButton.Name = "twoButton";
this.twoButton.Size = new System.Drawing.Size(35, 23);
this.twoButton.TabIndex = 6;
this.twoButton.Text = "2zl";
this.twoButton.UseVisualStyleBackColor = true;
this.twoButton.Click += new System.EventHandler(this.twoButton_Click);
//
// oneButton
//
this.oneButton.Location = new System.Drawing.Point(340, 93);
this.oneButton.Name = "oneButton";
this.oneButton.Size = new System.Drawing.Size(35, 23);
this.oneButton.TabIndex = 7;
this.oneButton.Text = "1zl";
this.oneButton.UseVisualStyleBackColor = true;
this.oneButton.Click += new System.EventHandler(this.oneButton_Click);
//
// fiftyButton
//
this.fiftyButton.Location = new System.Drawing.Point(384, 93);
this.fiftyButton.Name = "fiftyButton";
this.fiftyButton.Size = new System.Drawing.Size(35, 23);
this.fiftyButton.TabIndex = 8;
this.fiftyButton.Text = "50gr";
this.fiftyButton.UseVisualStyleBackColor = true;
this.fiftyButton.Click += new System.EventHandler(this.button1_Click);
//
// twentyButton
//
this.twentyButton.Location = new System.Drawing.Point(340, 122);
this.twentyButton.Name = "twentyButton";
this.twentyButton.Size = new System.Drawing.Size(35, 23);
this.twentyButton.TabIndex = 9;
this.twentyButton.Text = "20gr";
this.twentyButton.UseVisualStyleBackColor = true;
this.twentyButton.Click += new System.EventHandler(this.twentyButton_Click);
//
// button1
//
this.button1.Location = new System.Drawing.Point(384, 122);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(35, 23);
this.button1.TabIndex = 10;
this.button1.Text = "10gr";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click_1);
//
// button2
//
this.button2.Location = new System.Drawing.Point(12, 42);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 74);
this.button2.TabIndex = 11;
this.button2.Text = "button2";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button3
//
this.button3.Location = new System.Drawing.Point(93, 42);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(75, 74);
this.button3.TabIndex = 12;
this.button3.Text = "button3";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// button4
//
this.button4.Location = new System.Drawing.Point(174, 42);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(75, 74);
this.button4.TabIndex = 13;
this.button4.Text = "button4";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// button5
//
this.button5.Location = new System.Drawing.Point(255, 42);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(75, 74);
this.button5.TabIndex = 14;
this.button5.Text = "button5";
this.button5.UseVisualStyleBackColor = true;
this.button5.Click += new System.EventHandler(this.button5_Click);
//
// button6
//
this.button6.Location = new System.Drawing.Point(255, 122);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(75, 74);
this.button6.TabIndex = 15;
this.button6.Text = "button6";
this.button6.UseVisualStyleBackColor = true;
this.button6.Click += new System.EventHandler(this.button6_Click);
//
// button7
//
this.button7.Location = new System.Drawing.Point(174, 122);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(75, 74);
this.button7.TabIndex = 16;
this.button7.Text = "button7";
this.button7.UseVisualStyleBackColor = true;
this.button7.Click += new System.EventHandler(this.button7_Click);
//
// button8
//
this.button8.Location = new System.Drawing.Point(93, 122);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(75, 74);
this.button8.TabIndex = 17;
this.button8.Text = "button8";
this.button8.UseVisualStyleBackColor = true;
this.button8.Click += new System.EventHandler(this.button8_Click);
//
// button9
//
this.button9.Location = new System.Drawing.Point(12, 122);
this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(75, 74);
this.button9.TabIndex = 18;
this.button9.Text = "button9";
this.button9.UseVisualStyleBackColor = true;
this.button9.Click += new System.EventHandler(this.button9_Click);
//
// button10
//
this.button10.Location = new System.Drawing.Point(12, 202);
this.button10.Name = "button10";
this.button10.Size = new System.Drawing.Size(75, 74);
this.button10.TabIndex = 19;
this.button10.Text = "button10";
this.button10.UseVisualStyleBackColor = true;
this.button10.Click += new System.EventHandler(this.button10_Click);
//
// button11
//
this.button11.Location = new System.Drawing.Point(93, 202);
this.button11.Name = "button11";
this.button11.Size = new System.Drawing.Size(75, 74);
this.button11.TabIndex = 20;
this.button11.Text = "button11";
this.button11.UseVisualStyleBackColor = true;
this.button11.Click += new System.EventHandler(this.button11_Click);
//
// button12
//
this.button12.Location = new System.Drawing.Point(174, 202);
this.button12.Name = "button12";
this.button12.Size = new System.Drawing.Size(75, 74);
this.button12.TabIndex = 21;
this.button12.Text = "button12";
this.button12.UseVisualStyleBackColor = true;
this.button12.Click += new System.EventHandler(this.button12_Click);
//
// button13
//
this.button13.Location = new System.Drawing.Point(255, 202);
this.button13.Name = "button13";
this.button13.Size = new System.Drawing.Size(75, 74);
this.button13.TabIndex = 22;
this.button13.Text = "button13";
this.button13.UseVisualStyleBackColor = true;
this.button13.Click += new System.EventHandler(this.button13_Click);
//
// button14
//
this.button14.Location = new System.Drawing.Point(12, 282);
this.button14.Name = "button14";
this.button14.Size = new System.Drawing.Size(75, 74);
this.button14.TabIndex = 23;
this.button14.Text = "button14";
this.button14.UseVisualStyleBackColor = true;
this.button14.Click += new System.EventHandler(this.button14_Click);
//
// button15
//
this.button15.Location = new System.Drawing.Point(93, 282);
this.button15.Name = "button15";
this.button15.Size = new System.Drawing.Size(75, 74);
this.button15.TabIndex = 24;
this.button15.Text = "button15";
this.button15.UseVisualStyleBackColor = true;
this.button15.Click += new System.EventHandler(this.button15_Click);
//
// button16
//
this.button16.Location = new System.Drawing.Point(174, 282);
this.button16.Name = "button16";
this.button16.Size = new System.Drawing.Size(75, 74);
this.button16.TabIndex = 25;
this.button16.Text = "button16";
this.button16.UseVisualStyleBackColor = true;
this.button16.Click += new System.EventHandler(this.button16_Click);
//
// button17
//
this.button17.Location = new System.Drawing.Point(255, 282);
this.button17.Name = "button17";
this.button17.Size = new System.Drawing.Size(75, 74);
this.button17.TabIndex = 26;
this.button17.Text = "button17";
this.button17.UseVisualStyleBackColor = true;
this.button17.Click += new System.EventHandler(this.button17_Click);
//
// button18
//
this.button18.Location = new System.Drawing.Point(12, 362);
this.button18.Name = "button18";
this.button18.Size = new System.Drawing.Size(75, 74);
this.button18.TabIndex = 28;
this.button18.Text = "button18";
this.button18.UseVisualStyleBackColor = true;
this.button18.Click += new System.EventHandler(this.button18_Click);
//
// button19
//
this.button19.Location = new System.Drawing.Point(93, 362);
this.button19.Name = "button19";
this.button19.Size = new System.Drawing.Size(75, 74);
this.button19.TabIndex = 29;
this.button19.Text = "button19";
this.button19.UseVisualStyleBackColor = true;
this.button19.Click += new System.EventHandler(this.button19_Click);
//
// button20
//
this.button20.Location = new System.Drawing.Point(174, 364);
this.button20.Name = "button20";
this.button20.Size = new System.Drawing.Size(75, 74);
this.button20.TabIndex = 30;
this.button20.Text = "button20";
this.button20.UseVisualStyleBackColor = true;
this.button20.Click += new System.EventHandler(this.button20_Click);
//
// button21
//
this.button21.Location = new System.Drawing.Point(255, 362);
this.button21.Name = "button21";
this.button21.Size = new System.Drawing.Size(75, 74);
this.button21.TabIndex = 31;
this.button21.Text = "button21";
this.button21.UseVisualStyleBackColor = true;
this.button21.Click += new System.EventHandler(this.button21_Click);
//
// cardButton
//
this.cardButton.Location = new System.Drawing.Point(344, 163);
this.cardButton.Name = "cardButton";
this.cardButton.Size = new System.Drawing.Size(75, 45);
this.cardButton.TabIndex = 32;
this.cardButton.Text = "Karta";
this.cardButton.UseVisualStyleBackColor = true;
this.cardButton.Click += new System.EventHandler(this.cardButton_Click);
//
// button22
//
this.button22.Location = new System.Drawing.Point(344, 217);
this.button22.Name = "button22";
this.button22.Size = new System.Drawing.Size(75, 45);
this.button22.TabIndex = 33;
this.button22.Text = "Uzupełnij produkty";
this.button22.UseVisualStyleBackColor = true;
this.button22.Click += new System.EventHandler(this.button22_Click);
//
// restBox
//
this.restBox.Location = new System.Drawing.Point(349, 292);
this.restBox.Name = "restBox";
this.restBox.ReadOnly = true;
this.restBox.Size = new System.Drawing.Size(65, 20);
this.restBox.TabIndex = 34;
//
// restTextBox
//
this.restTextBox.AutoSize = true;
this.restTextBox.Location = new System.Drawing.Point(360, 276);
this.restTextBox.Name = "restTextBox";
this.restTextBox.Size = new System.Drawing.Size(40, 13);
this.restTextBox.TabIndex = 35;
this.restTextBox.Text = "Reszta";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(431, 450);
this.Controls.Add(this.restTextBox);
this.Controls.Add(this.restBox);
this.Controls.Add(this.button22);
this.Controls.Add(this.cardButton);
this.Controls.Add(this.button21);
this.Controls.Add(this.button20);
this.Controls.Add(this.button19);
this.Controls.Add(this.button18);
this.Controls.Add(this.button17);
this.Controls.Add(this.button16);
this.Controls.Add(this.button15);
this.Controls.Add(this.button14);
this.Controls.Add(this.button13);
this.Controls.Add(this.button12);
this.Controls.Add(this.button11);
this.Controls.Add(this.button10);
this.Controls.Add(this.button9);
this.Controls.Add(this.button8);
this.Controls.Add(this.button7);
this.Controls.Add(this.button6);
this.Controls.Add(this.button5);
this.Controls.Add(this.button4);
this.Controls.Add(this.button3);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(this.twentyButton);
this.Controls.Add(this.fiftyButton);
this.Controls.Add(this.oneButton);
this.Controls.Add(this.twoButton);
this.Controls.Add(this.fiveButton);
this.Controls.Add(this.screen);
this.Controls.Add(this.balanceBox);
this.Controls.Add(this.BalanceLabel);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label BalanceLabel;
private System.Windows.Forms.TextBox balanceBox;
private System.Windows.Forms.TextBox screen;
private System.Windows.Forms.Button fiveButton;
private System.Windows.Forms.Button twoButton;
private System.Windows.Forms.Button oneButton;
private System.Windows.Forms.Button fiftyButton;
private System.Windows.Forms.Button twentyButton;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.Button button7;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.Button button9;
private System.Windows.Forms.Button button10;
private System.Windows.Forms.Button button11;
private System.Windows.Forms.Button button12;
private System.Windows.Forms.Button button13;
private System.Windows.Forms.Button button14;
private System.Windows.Forms.Button button15;
private System.Windows.Forms.Button button16;
private System.Windows.Forms.Button button17;
private System.Windows.Forms.Button button18;
private System.Windows.Forms.Button button19;
private System.Windows.Forms.Button button20;
private System.Windows.Forms.Button button21;
private System.Windows.Forms.Button cardButton;
private System.Windows.Forms.Button button22;
private System.Windows.Forms.TextBox restBox;
private System.Windows.Forms.Label restTextBox;
}
}

477
VendingMachine/Form1.cs Normal file
View File

@ -0,0 +1,477 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace VendingMachine
{
public partial class Form1 : Form
{
Automat vendor;
Portfel wallet;
Produkt[] products = { new Produkt("Pepsi", 2.0f), new Produkt("Coca-Cola", 2.50f), new Produkt("M&Ms", 3.50f), new Produkt("Grzesiek", 1.89f), new Produkt("Prince Polo", 3.50f),
new Produkt("7 Days", 3.80f), new Produkt("Oshee", 1.50f), new Produkt("Żywiec zdrój", 3.50f), new Produkt("Tiger", 2.0f), new Produkt("WW", 2.0f),
new Produkt("Bułka z serem", 1.20f), new Produkt("Bułka z szynką", 1.7f), new Produkt("Corny", 2.30f), new Produkt("Lay's", 2.89f), new Produkt("Jeżyki", 3.20f),
new Produkt("Maxi King", 3.10f), new Produkt("Cappy", 2.70f), new Produkt("7Up", 2.10f), new Produkt("Monster", 4.0f), new Produkt("Snickers", 2.5f)};
List<Button> buttonGroup;
public Form1()
{
InitializeComponent();
wallet = new Portfel(300.50f);
vendor = new Automat(products,wallet);
buttonGroup = new List<Button> { button2, button3, button4, button5, button6,button7, button8, button9,
button10, button11, button12, button13, button14, button15, button16,
button17, button18, button19, button20, button21};
int i = 0;
foreach (Button j in buttonGroup)
{
j.Text = products[i].getNazwa() + "\n" + products[i].getCena().ToString() + " zł";
i++;
}
balanceBox.Text = vendor.getBalance().ToString() + " zł";
screen.Text = "Zapraszamy do zakupów";
}
private void label2_Click(object sender, EventArgs e)
{
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
vendor.setBalance(vendor.getBalance() + 0.5f);
balanceBox.Text = vendor.getBalance() + " zł";
}
private void button2_Click(object sender, EventArgs e)
{
float res = vendor.buyProduct(products[0], wallet);
if(res == -1)
{
screen.Text = "Zbyt niski stan konta.";
}
else if(res == -2)
{
screen.Text = "Brakuje produktu.";
}
else
{
restBox.Text = res + " zł";
screen.Text = "Pomyślnie kupiono produkt.";
}
balanceBox.Text = vendor.getBalance() + " zł";
}
private void fiveButton_Click(object sender, EventArgs e)
{
vendor.setBalance(vendor.getBalance() + 5);
balanceBox.Text = vendor.getBalance() + " zł";
}
private void twoButton_Click(object sender, EventArgs e)
{
vendor.setBalance(vendor.getBalance() + 2);
balanceBox.Text = vendor.getBalance() + " zł";
}
private void oneButton_Click(object sender, EventArgs e)
{
vendor.setBalance(vendor.getBalance() + 1);
balanceBox.Text = vendor.getBalance() + " zł";
}
private void twentyButton_Click(object sender, EventArgs e)
{
vendor.setBalance(vendor.getBalance() + 0.2f);
balanceBox.Text = vendor.getBalance() + " zł";
}
private void button1_Click_1(object sender, EventArgs e)
{
vendor.setBalance(vendor.getBalance() + 0.1f);
balanceBox.Text = vendor.getBalance() + " zł";
}
private void button22_Click(object sender, EventArgs e)
{
vendor.restock();
}
private void button3_Click(object sender, EventArgs e)
{
float res = vendor.buyProduct(products[1], wallet);
if (res == -1)
{
screen.Text = "Zbyt niski stan konta.";
}
else if (res == -2)
{
screen.Text = "Brakuje produktu.";
}
else
{
restBox.Text = res + " zł";
screen.Text = "Pomyślnie kupiono produkt.";
}
balanceBox.Text = vendor.getBalance() + " zł";
}
private void button4_Click(object sender, EventArgs e)
{
float res = vendor.buyProduct(products[2], wallet);
if (res == -1)
{
screen.Text = "Zbyt niski stan konta.";
}
else if (res == -2)
{
screen.Text = "Brakuje produktu.";
}
else
{
restBox.Text = res + " zł";
screen.Text = "Pomyślnie kupiono produkt.";
}
balanceBox.Text = vendor.getBalance() + " zł";
}
private void button5_Click(object sender, EventArgs e)
{
float res = vendor.buyProduct(products[3], wallet);
if (res == -1)
{
screen.Text = "Zbyt niski stan konta.";
}
else if (res == -2)
{
screen.Text = "Brakuje produktu.";
}
else
{
restBox.Text = res + " zł";
screen.Text = "Pomyślnie kupiono produkt.";
}
balanceBox.Text = vendor.getBalance() + " zł";
}
private void button9_Click(object sender, EventArgs e)
{
float res = vendor.buyProduct(products[4], wallet);
if (res == -1)
{
screen.Text = "Zbyt niski stan konta.";
}
else if (res == -2)
{
screen.Text = "Brakuje produktu.";
}
else
{
restBox.Text = res + " zł";
screen.Text = "Pomyślnie kupiono produkt.";
}
balanceBox.Text = vendor.getBalance() + " zł";
}
private void button8_Click(object sender, EventArgs e)
{
float res = vendor.buyProduct(products[5], wallet);
if (res == -1)
{
screen.Text = "Zbyt niski stan konta.";
}
else if (res == -2)
{
screen.Text = "Brakuje produktu.";
}
else
{
restBox.Text = res + " zł";
screen.Text = "Pomyślnie kupiono produkt.";
}
balanceBox.Text = vendor.getBalance() + " zł";
}
private void button7_Click(object sender, EventArgs e)
{
float res = vendor.buyProduct(products[6], wallet);
if (res == -1)
{
screen.Text = "Zbyt niski stan konta.";
}
else if (res == -2)
{
screen.Text = "Brakuje produktu.";
}
else
{
restBox.Text = res + " zł";
screen.Text = "Pomyślnie kupiono produkt.";
}
balanceBox.Text = vendor.getBalance() + " zł";
}
private void button6_Click(object sender, EventArgs e)
{
float res = vendor.buyProduct(products[7], wallet);
if (res == -1)
{
screen.Text = "Zbyt niski stan konta.";
}
else if (res == -2)
{
screen.Text = "Brakuje produktu.";
}
else
{
restBox.Text = res + " zł";
screen.Text = "Pomyślnie kupiono produkt.";
}
balanceBox.Text = vendor.getBalance() + " zł";
}
private void button10_Click(object sender, EventArgs e)
{
float res = vendor.buyProduct(products[8], wallet);
if (res == -1)
{
screen.Text = "Zbyt niski stan konta.";
}
else if (res == -2)
{
screen.Text = "Brakuje produktu.";
}
else
{
restBox.Text = res + " zł";
screen.Text = "Pomyślnie kupiono produkt.";
}
balanceBox.Text = vendor.getBalance() + " zł";
}
private void button11_Click(object sender, EventArgs e)
{
float res = vendor.buyProduct(products[9], wallet);
if (res == -1)
{
screen.Text = "Zbyt niski stan konta.";
}
else if (res == -2)
{
screen.Text = "Brakuje produktu.";
}
else
{
restBox.Text = res + " zł";
screen.Text = "Pomyślnie kupiono produkt.";
}
balanceBox.Text = vendor.getBalance() + " zł";
}
private void button12_Click(object sender, EventArgs e)
{
float res = vendor.buyProduct(products[10], wallet);
if (res == -1)
{
screen.Text = "Zbyt niski stan konta.";
}
else if (res == -2)
{
screen.Text = "Brakuje produktu.";
}
else
{
restBox.Text = res + " zł";
screen.Text = "Pomyślnie kupiono produkt.";
}
balanceBox.Text = vendor.getBalance() + " zł";
}
private void button13_Click(object sender, EventArgs e)
{
float res = vendor.buyProduct(products[11], wallet);
if (res == -1)
{
screen.Text = "Zbyt niski stan konta.";
}
else if (res == -2)
{
screen.Text = "Brakuje produktu.";
}
else
{
restBox.Text = res + " zł";
screen.Text = "Pomyślnie kupiono produkt.";
}
balanceBox.Text = vendor.getBalance() + " zł";
}
private void button14_Click(object sender, EventArgs e)
{
float res = vendor.buyProduct(products[12], wallet);
if (res == -1)
{
screen.Text = "Zbyt niski stan konta.";
}
else if (res == -2)
{
screen.Text = "Brakuje produktu.";
}
else
{
restBox.Text = res + " zł";
screen.Text = "Pomyślnie kupiono produkt.";
}
balanceBox.Text = vendor.getBalance() + " zł";
}
private void button15_Click(object sender, EventArgs e)
{
float res = vendor.buyProduct(products[13], wallet);
if (res == -1)
{
screen.Text = "Zbyt niski stan konta.";
}
else if (res == -2)
{
screen.Text = "Brakuje produktu.";
}
else
{
restBox.Text = res + " zł";
screen.Text = "Pomyślnie kupiono produkt.";
}
balanceBox.Text = vendor.getBalance() + " zł";
}
private void button16_Click(object sender, EventArgs e)
{
float res = vendor.buyProduct(products[14], wallet);
if (res == -1)
{
screen.Text = "Zbyt niski stan konta.";
}
else if (res == -2)
{
screen.Text = "Brakuje produktu.";
}
else
{
restBox.Text = res + " zł";
screen.Text = "Pomyślnie kupiono produkt.";
}
balanceBox.Text = vendor.getBalance() + " zł";
}
private void button17_Click(object sender, EventArgs e)
{
float res = vendor.buyProduct(products[15], wallet);
if (res == -1)
{
screen.Text = "Zbyt niski stan konta.";
}
else if (res == -2)
{
screen.Text = "Brakuje produktu.";
}
else
{
restBox.Text = res + " zł";
screen.Text = "Pomyślnie kupiono produkt.";
}
balanceBox.Text = vendor.getBalance() + " zł";
}
private void button18_Click(object sender, EventArgs e)
{
float res = vendor.buyProduct(products[16], wallet);
if (res == -1)
{
screen.Text = "Zbyt niski stan konta.";
}
else if (res == -2)
{
screen.Text = "Brakuje produktu.";
}
else
{
restBox.Text = res + " zł";
screen.Text = "Pomyślnie kupiono produkt.";
}
balanceBox.Text = vendor.getBalance() + " zł";
}
private void button19_Click(object sender, EventArgs e)
{
float res = vendor.buyProduct(products[17], wallet);
if (res == -1)
{
screen.Text = "Zbyt niski stan konta.";
}
else if (res == -2)
{
screen.Text = "Brakuje produktu.";
}
else
{
restBox.Text = res + " zł";
screen.Text = "Pomyślnie kupiono produkt.";
}
balanceBox.Text = vendor.getBalance() + " zł";
}
private void button20_Click(object sender, EventArgs e)
{
float res = vendor.buyProduct(products[18], wallet);
if (res == -1)
{
screen.Text = "Zbyt niski stan konta.";
}
else if (res == -2)
{
screen.Text = "Brakuje produktu.";
}
else
{
restBox.Text = res + " zł";
screen.Text = "Pomyślnie kupiono produkt.";
}
balanceBox.Text = vendor.getBalance() + " zł";
}
private void button21_Click(object sender, EventArgs e)
{
float res = vendor.buyProduct(products[19], wallet);
if (res == -1)
{
screen.Text = "Zbyt niski stan konta.";
}
else if (res == -2)
{
screen.Text = "Brakuje produktu.";
}
else
{
restBox.Text = res + " zł";
screen.Text = "Pomyślnie kupiono produkt.";
}
balanceBox.Text = vendor.getBalance() + " zł";
}
private void cardButton_Click(object sender, EventArgs e)
{
vendor.setCard(true);
}
}
}

120
VendingMachine/Form1.resx Normal file
View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

25
VendingMachine/Portfel.cs Normal file
View File

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VendingMachine
{
class Portfel
{
float stan;
public Portfel(float a)
{
stan = a;
}
public void setBalance(float a)
{
stan = a;
}
public float getBalance()
{
return stan;
}
}
}

38
VendingMachine/Produkt.cs Normal file
View File

@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace VendingMachine
{
class Produkt
{
string nazwa;
float cena;
public Produkt(string a,float b)
{
nazwa = a;
cena = b;
}
public void setNazwa(string a)
{
nazwa = a;
}
public string getNazwa()
{
return nazwa;
}
public void setCena(float a)
{
cena = a;
}
public float getCena()
{
return cena;
}
}
}

22
VendingMachine/Program.cs Normal file
View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace VendingMachine
{
static class Program
{
/// <summary>
/// Główny punkt wejścia dla aplikacji.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}

View File

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 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("VendingMachine")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("VendingMachine")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[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("82616717-0815-47a7-b588-146f64ea6660")]
// Informacje o wersji zestawu zawierają następujące cztery wartości:
//
// Wersja główna
// Wersja pomocnicza
// Numer kompilacji
// Poprawka
//
// 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")]

View File

@ -0,0 +1,71 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Ten kod został wygenerowany przez narzędzie.
// Wersja środowiska uruchomieniowego: 4.0.30319.42000
//
// Modyfikacje tego pliku mogą spowodować niewłaściwe zachowanie i zostaną utracone
// w przypadku ponownego wygenerowania kodu.
// </auto-generated>
//------------------------------------------------------------------------------
namespace VendingMachine.Properties
{
/// <summary>
/// Silnie typizowana klasa zasobów do wyszukiwania zlokalizowanych ciągów itd.
/// </summary>
// Ta klasa została automatycznie wygenerowana za pomocą klasy StronglyTypedResourceBuilder
// przez narzędzie, takie jak ResGen lub Visual Studio.
// Aby dodać lub usunąć składowe, edytuj plik ResX, a następnie ponownie uruchom narzędzie ResGen
// z opcją /str lub ponownie skompiluj projekt programu VS.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Zwraca buforowane wystąpienie składnika ResourceManager używane przez tę klasę.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("VendingMachine.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Przesłania właściwość CurrentUICulture bieżącego wątku dla wszystkich
/// przypadków przeszukiwania zasobów za pomocą tej silnie typizowanej klasy zasobów.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}

View File

@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace VendingMachine.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

View File

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

View File

@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{82616717-0815-47A7-B588-146F64EA6660}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>VendingMachine</RootNamespace>
<AssemblyName>VendingMachine</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Automat.cs" />
<Compile Include="Portfel.cs" />
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Produkt.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

Binary file not shown.

View File

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

Binary file not shown.

View File

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

View File

@ -0,0 +1 @@
051a9b2a84020b84dffe52d4ac80af914fe519a8

View File

@ -0,0 +1,10 @@
C:\Users\davzai\source\repos\VendingMachine\VendingMachine\bin\Debug\VendingMachine.exe.config
C:\Users\davzai\source\repos\VendingMachine\VendingMachine\bin\Debug\VendingMachine.exe
C:\Users\davzai\source\repos\VendingMachine\VendingMachine\bin\Debug\VendingMachine.pdb
C:\Users\davzai\source\repos\VendingMachine\VendingMachine\obj\Debug\VendingMachine.csprojAssemblyReference.cache
C:\Users\davzai\source\repos\VendingMachine\VendingMachine\obj\Debug\VendingMachine.Form1.resources
C:\Users\davzai\source\repos\VendingMachine\VendingMachine\obj\Debug\VendingMachine.Properties.Resources.resources
C:\Users\davzai\source\repos\VendingMachine\VendingMachine\obj\Debug\VendingMachine.csproj.GenerateResource.cache
C:\Users\davzai\source\repos\VendingMachine\VendingMachine\obj\Debug\VendingMachine.csproj.CoreCompileInputs.cache
C:\Users\davzai\source\repos\VendingMachine\VendingMachine\obj\Debug\VendingMachine.exe
C:\Users\davzai\source\repos\VendingMachine\VendingMachine\obj\Debug\VendingMachine.pdb

Binary file not shown.

Binary file not shown.