main
Fionn 3 years ago
parent 21c1923ffe
commit 43abe69269

@ -30,15 +30,15 @@
{ {
this.buttonAddNewOffer = new System.Windows.Forms.Button(); this.buttonAddNewOffer = new System.Windows.Forms.Button();
this.offersTablePanel = new System.Windows.Forms.TableLayoutPanel(); this.offersTablePanel = new System.Windows.Forms.TableLayoutPanel();
this.labelPriceDelivered = new System.Windows.Forms.Label();
this.labelDeliveryFee = new System.Windows.Forms.Label();
this.labelPriceEarlyPayDiscount = new System.Windows.Forms.Label();
this.labelEarlyPayDiscount = new System.Windows.Forms.Label();
this.labelPriceTargetPurchase = new System.Windows.Forms.Label();
this.labelDiscount = new System.Windows.Forms.Label();
this.labelListPrice = new System.Windows.Forms.Label();
this.labelEdit = new System.Windows.Forms.Label();
this.labelOfferTitle = new System.Windows.Forms.Label(); this.labelOfferTitle = new System.Windows.Forms.Label();
this.labelEdit = new System.Windows.Forms.Label();
this.labelListPrice = new System.Windows.Forms.Label();
this.labelDiscount = new System.Windows.Forms.Label();
this.labelPriceTargetPurchase = new System.Windows.Forms.Label();
this.labelEarlyPayDiscount = new System.Windows.Forms.Label();
this.labelPriceEarlyPayDiscount = new System.Windows.Forms.Label();
this.labelDeliveryFee = new System.Windows.Forms.Label();
this.labelPriceDelivered = new System.Windows.Forms.Label();
this.buttonMetaData = new System.Windows.Forms.Button(); this.buttonMetaData = new System.Windows.Forms.Button();
this.offersTablePanel.SuspendLayout(); this.offersTablePanel.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
@ -90,41 +90,41 @@
this.offersTablePanel.Size = new System.Drawing.Size(776, 220); this.offersTablePanel.Size = new System.Drawing.Size(776, 220);
this.offersTablePanel.TabIndex = 1; this.offersTablePanel.TabIndex = 1;
// //
// labelPriceDelivered // labelOfferTitle
// //
this.labelPriceDelivered.AutoSize = true; this.labelOfferTitle.AutoSize = true;
this.labelPriceDelivered.Location = new System.Drawing.Point(3, 155); this.labelOfferTitle.Location = new System.Drawing.Point(3, 0);
this.labelPriceDelivered.Name = "labelPriceDelivered"; this.labelOfferTitle.Name = "labelOfferTitle";
this.labelPriceDelivered.Size = new System.Drawing.Size(69, 15); this.labelOfferTitle.Size = new System.Drawing.Size(78, 15);
this.labelPriceDelivered.TabIndex = 8; this.labelOfferTitle.TabIndex = 0;
this.labelPriceDelivered.Text = "Bezugspreis"; this.labelOfferTitle.Text = "Angebotstitel";
// //
// labelDeliveryFee // labelEdit
// //
this.labelDeliveryFee.AutoSize = true; this.labelEdit.AutoSize = true;
this.labelDeliveryFee.Location = new System.Drawing.Point(3, 135); this.labelEdit.Location = new System.Drawing.Point(3, 20);
this.labelDeliveryFee.Name = "labelDeliveryFee"; this.labelEdit.Name = "labelEdit";
this.labelDeliveryFee.Size = new System.Drawing.Size(79, 15); this.labelEdit.Size = new System.Drawing.Size(112, 15);
this.labelDeliveryFee.TabIndex = 7; this.labelEdit.TabIndex = 1;
this.labelDeliveryFee.Text = "Bezugskosten"; this.labelEdit.Text = "Bearbeiten/Löschen";
// //
// labelPriceEarlyPayDiscount // labelListPrice
// //
this.labelPriceEarlyPayDiscount.AutoSize = true; this.labelListPrice.AutoSize = true;
this.labelPriceEarlyPayDiscount.Location = new System.Drawing.Point(3, 115); this.labelListPrice.Location = new System.Drawing.Point(3, 35);
this.labelPriceEarlyPayDiscount.Name = "labelPriceEarlyPayDiscount"; this.labelListPrice.Name = "labelListPrice";
this.labelPriceEarlyPayDiscount.Size = new System.Drawing.Size(93, 15); this.labelListPrice.Size = new System.Drawing.Size(107, 15);
this.labelPriceEarlyPayDiscount.TabIndex = 6; this.labelListPrice.TabIndex = 2;
this.labelPriceEarlyPayDiscount.Text = "Bareinkaufspreis"; this.labelListPrice.Text = "Listeneinkaufspreis";
// //
// labelEarlyPayDiscount // labelDiscount
// //
this.labelEarlyPayDiscount.AutoSize = true; this.labelDiscount.AutoSize = true;
this.labelEarlyPayDiscount.Location = new System.Drawing.Point(3, 95); this.labelDiscount.Location = new System.Drawing.Point(3, 55);
this.labelEarlyPayDiscount.Name = "labelEarlyPayDiscount"; this.labelDiscount.Name = "labelDiscount";
this.labelEarlyPayDiscount.Size = new System.Drawing.Size(82, 15); this.labelDiscount.Size = new System.Drawing.Size(67, 15);
this.labelEarlyPayDiscount.TabIndex = 5; this.labelDiscount.TabIndex = 3;
this.labelEarlyPayDiscount.Text = "Liefererskonto"; this.labelDiscount.Text = "Lieferrabatt";
// //
// labelPriceTargetPurchase // labelPriceTargetPurchase
// //
@ -135,41 +135,41 @@
this.labelPriceTargetPurchase.TabIndex = 4; this.labelPriceTargetPurchase.TabIndex = 4;
this.labelPriceTargetPurchase.Text = "Zieleinkaufspreis"; this.labelPriceTargetPurchase.Text = "Zieleinkaufspreis";
// //
// labelDiscount // labelEarlyPayDiscount
// //
this.labelDiscount.AutoSize = true; this.labelEarlyPayDiscount.AutoSize = true;
this.labelDiscount.Location = new System.Drawing.Point(3, 55); this.labelEarlyPayDiscount.Location = new System.Drawing.Point(3, 95);
this.labelDiscount.Name = "labelDiscount"; this.labelEarlyPayDiscount.Name = "labelEarlyPayDiscount";
this.labelDiscount.Size = new System.Drawing.Size(67, 15); this.labelEarlyPayDiscount.Size = new System.Drawing.Size(82, 15);
this.labelDiscount.TabIndex = 3; this.labelEarlyPayDiscount.TabIndex = 5;
this.labelDiscount.Text = "Lieferrabatt"; this.labelEarlyPayDiscount.Text = "Liefererskonto";
// //
// labelListPrice // labelPriceEarlyPayDiscount
// //
this.labelListPrice.AutoSize = true; this.labelPriceEarlyPayDiscount.AutoSize = true;
this.labelListPrice.Location = new System.Drawing.Point(3, 35); this.labelPriceEarlyPayDiscount.Location = new System.Drawing.Point(3, 115);
this.labelListPrice.Name = "labelListPrice"; this.labelPriceEarlyPayDiscount.Name = "labelPriceEarlyPayDiscount";
this.labelListPrice.Size = new System.Drawing.Size(107, 15); this.labelPriceEarlyPayDiscount.Size = new System.Drawing.Size(93, 15);
this.labelListPrice.TabIndex = 2; this.labelPriceEarlyPayDiscount.TabIndex = 6;
this.labelListPrice.Text = "Listeneinkaufspreis"; this.labelPriceEarlyPayDiscount.Text = "Bareinkaufspreis";
// //
// labelEdit // labelDeliveryFee
// //
this.labelEdit.AutoSize = true; this.labelDeliveryFee.AutoSize = true;
this.labelEdit.Location = new System.Drawing.Point(3, 20); this.labelDeliveryFee.Location = new System.Drawing.Point(3, 135);
this.labelEdit.Name = "labelEdit"; this.labelDeliveryFee.Name = "labelDeliveryFee";
this.labelEdit.Size = new System.Drawing.Size(112, 15); this.labelDeliveryFee.Size = new System.Drawing.Size(79, 15);
this.labelEdit.TabIndex = 1; this.labelDeliveryFee.TabIndex = 7;
this.labelEdit.Text = "Bearbeiten/Löschen"; this.labelDeliveryFee.Text = "Bezugskosten";
// //
// labelOfferTitle // labelPriceDelivered
// //
this.labelOfferTitle.AutoSize = true; this.labelPriceDelivered.AutoSize = true;
this.labelOfferTitle.Location = new System.Drawing.Point(3, 0); this.labelPriceDelivered.Location = new System.Drawing.Point(3, 155);
this.labelOfferTitle.Name = "labelOfferTitle"; this.labelPriceDelivered.Name = "labelPriceDelivered";
this.labelOfferTitle.Size = new System.Drawing.Size(78, 15); this.labelPriceDelivered.Size = new System.Drawing.Size(69, 15);
this.labelOfferTitle.TabIndex = 0; this.labelPriceDelivered.TabIndex = 8;
this.labelOfferTitle.Text = "Angebotstitel"; this.labelPriceDelivered.Text = "Bezugspreis";
// //
// buttonMetaData // buttonMetaData
// //
@ -181,6 +181,7 @@
this.buttonMetaData.Text = "Metadaten"; this.buttonMetaData.Text = "Metadaten";
this.buttonMetaData.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.buttonMetaData.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.buttonMetaData.UseVisualStyleBackColor = true; this.buttonMetaData.UseVisualStyleBackColor = true;
this.buttonMetaData.Click += new System.EventHandler(this.buttonMetaData_Click);
// //
// MainForm // MainForm
// //

@ -2,7 +2,7 @@ namespace QuantitativerAngebotsvergleich
{ {
public partial class MainForm : Form public partial class MainForm : Form
{ {
internal readonly OfferMeta Meta = new(); internal OfferMeta Meta = new();
private List<Offer> Offers = new(); private List<Offer> Offers = new();
public MainForm() public MainForm()
@ -28,6 +28,13 @@ namespace QuantitativerAngebotsvergleich
RedrawFields(); RedrawFields();
} }
public void SaveMeta(OfferMeta meta)
{
Meta = meta;
buttonMetaData.Text = $"Metadaten | Währung: {Meta.Currency} | Menge: {Meta.Amount}";
}
public void RedrawFields() public void RedrawFields()
{ {
@ -95,10 +102,8 @@ namespace QuantitativerAngebotsvergleich
offersTablePanel.Controls.Add(labelPriceDelivered, colNumber, 8); offersTablePanel.Controls.Add(labelPriceDelivered, colNumber, 8);
} }
if (Offers.Count > 1) // disable add button if coutn of offers is 2 or more
{ buttonAddNewOffer.Enabled = Offers.Count < 2;
buttonAddNewOffer.Enabled = false;
}
} }
private void buttonAddNewOffer_Click(object sender, EventArgs e) private void buttonAddNewOffer_Click(object sender, EventArgs e)
@ -110,6 +115,11 @@ namespace QuantitativerAngebotsvergleich
{ {
return $"{Meta.Currency} {val}"; return $"{Meta.Currency} {val}";
} }
private void buttonMetaData_Click(object sender, EventArgs e)
{
new MetaForm(this, Meta).Show();
}
} }
public class OfferMeta public class OfferMeta

@ -0,0 +1,109 @@
namespace QuantitativerAngebotsvergleich
{
partial class MetaForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.labelAmount = new System.Windows.Forms.Label();
this.labelCurrency = new System.Windows.Forms.Label();
this.textBoxAmount = new System.Windows.Forms.TextBox();
this.textBoxCurrency = new System.Windows.Forms.TextBox();
this.buttonSave = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// labelAmount
//
this.labelAmount.AutoSize = true;
this.labelAmount.Location = new System.Drawing.Point(12, 9);
this.labelAmount.Name = "labelAmount";
this.labelAmount.Size = new System.Drawing.Size(43, 15);
this.labelAmount.TabIndex = 0;
this.labelAmount.Text = "Anzahl";
//
// labelCurrency
//
this.labelCurrency.AutoSize = true;
this.labelCurrency.Location = new System.Drawing.Point(12, 38);
this.labelCurrency.Name = "labelCurrency";
this.labelCurrency.Size = new System.Drawing.Size(56, 15);
this.labelCurrency.TabIndex = 1;
this.labelCurrency.Text = "Währung";
//
// textBoxAmount
//
this.textBoxAmount.Location = new System.Drawing.Point(114, 6);
this.textBoxAmount.Name = "textBoxAmount";
this.textBoxAmount.Size = new System.Drawing.Size(157, 23);
this.textBoxAmount.TabIndex = 2;
this.textBoxAmount.TextChanged += new System.EventHandler(this.FormFieldUpdate);
//
// textBoxCurrency
//
this.textBoxCurrency.Location = new System.Drawing.Point(114, 35);
this.textBoxCurrency.Name = "textBoxCurrency";
this.textBoxCurrency.Size = new System.Drawing.Size(157, 23);
this.textBoxCurrency.TabIndex = 3;
this.textBoxCurrency.TextChanged += new System.EventHandler(this.FormFieldUpdate);
//
// buttonSave
//
this.buttonSave.Location = new System.Drawing.Point(12, 64);
this.buttonSave.Name = "buttonSave";
this.buttonSave.Size = new System.Drawing.Size(259, 23);
this.buttonSave.TabIndex = 4;
this.buttonSave.Text = "Speichern";
this.buttonSave.UseVisualStyleBackColor = true;
this.buttonSave.Click += new System.EventHandler(this.buttonSave_Click);
//
// MetaForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(285, 95);
this.Controls.Add(this.buttonSave);
this.Controls.Add(this.textBoxCurrency);
this.Controls.Add(this.textBoxAmount);
this.Controls.Add(this.labelCurrency);
this.Controls.Add(this.labelAmount);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "MetaForm";
this.Text = "Metadaten";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private Label labelAmount;
private Label labelCurrency;
private TextBox textBoxAmount;
private TextBox textBoxCurrency;
private Button buttonSave;
}
}

@ -0,0 +1,68 @@
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 QuantitativerAngebotsvergleich
{
public partial class MetaForm : Form
{
OfferMeta meta;
MainForm mainForm;
internal MetaForm(MainForm mainForm, OfferMeta meta = null)
{
InitializeComponent();
this.meta = meta;
this.mainForm = mainForm;
RedrawFields();
}
internal void RedrawFields()
{
}
private void FormFieldUpdate(Control sender)
{
try
{
if (sender == textBoxAmount)
{
meta.Amount = int.Parse(sender.Text);
}
else if (sender == textBoxCurrency)
{
meta.Currency = sender.Text;
}
}
catch (Exception e) { }
RedrawFields();
}
private void FormFieldUpdate(object sender, EventArgs e)
{
if (sender is Control c)
{
FormFieldUpdate(c);
}
return;
}
private void buttonSave_Click(object sender, EventArgs e)
{
mainForm.SaveMeta(meta);
Close();
}
}
}

@ -0,0 +1,60 @@
<root>
<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>

@ -29,7 +29,6 @@
private void InitializeComponent() private void InitializeComponent()
{ {
this.buttonAddOffer = new System.Windows.Forms.Button(); this.buttonAddOffer = new System.Windows.Forms.Button();
this.buttonCancel = new System.Windows.Forms.Button();
this.textBoxInputListPrice = new System.Windows.Forms.TextBox(); this.textBoxInputListPrice = new System.Windows.Forms.TextBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.labelPriceDelivered = new System.Windows.Forms.Label(); this.labelPriceDelivered = new System.Windows.Forms.Label();
@ -54,6 +53,7 @@
this.labelOutputPriceDelivered = new System.Windows.Forms.Label(); this.labelOutputPriceDelivered = new System.Windows.Forms.Label();
this.labelInputLabel = new System.Windows.Forms.Label(); this.labelInputLabel = new System.Windows.Forms.Label();
this.textBoxInputLabel = new System.Windows.Forms.TextBox(); this.textBoxInputLabel = new System.Windows.Forms.TextBox();
this.buttonDelete = new System.Windows.Forms.Button();
this.tableLayoutPanel1.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
@ -67,16 +67,6 @@
this.buttonAddOffer.UseVisualStyleBackColor = true; this.buttonAddOffer.UseVisualStyleBackColor = true;
this.buttonAddOffer.Click += new System.EventHandler(this.buttonAddOffer_Click); this.buttonAddOffer.Click += new System.EventHandler(this.buttonAddOffer_Click);
// //
// buttonCancel
//
this.buttonCancel.Location = new System.Drawing.Point(12, 283);
this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.Size = new System.Drawing.Size(229, 23);
this.buttonCancel.TabIndex = 1;
this.buttonCancel.Text = "Abbrechen";
this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
//
// textBoxInputListPrice // textBoxInputListPrice
// //
this.textBoxInputListPrice.Location = new System.Drawing.Point(156, 23); this.textBoxInputListPrice.Location = new System.Drawing.Point(156, 23);
@ -337,15 +327,25 @@
this.textBoxInputLabel.TabIndex = 26; this.textBoxInputLabel.TabIndex = 26;
this.textBoxInputLabel.TextChanged += new System.EventHandler(this.FormFieldUpdate); this.textBoxInputLabel.TextChanged += new System.EventHandler(this.FormFieldUpdate);
// //
// buttonDelete
//
this.buttonDelete.Location = new System.Drawing.Point(15, 283);
this.buttonDelete.Name = "buttonDelete";
this.buttonDelete.Size = new System.Drawing.Size(226, 23);
this.buttonDelete.TabIndex = 27;
this.buttonDelete.Text = "Entfernen";
this.buttonDelete.UseVisualStyleBackColor = true;
this.buttonDelete.Click += new System.EventHandler(this.buttonDelete_Click);
//
// OfferDetail // OfferDetail
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(485, 314); this.ClientSize = new System.Drawing.Size(485, 316);
this.Controls.Add(this.buttonDelete);
this.Controls.Add(this.textBoxInputLabel); this.Controls.Add(this.textBoxInputLabel);
this.Controls.Add(this.labelInputLabel); this.Controls.Add(this.labelInputLabel);
this.Controls.Add(this.tableLayoutPanel1); this.Controls.Add(this.tableLayoutPanel1);
this.Controls.Add(this.buttonCancel);
this.Controls.Add(this.buttonAddOffer); this.Controls.Add(this.buttonAddOffer);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false; this.MaximizeBox = false;
@ -362,7 +362,6 @@
#endregion #endregion
private Button buttonAddOffer; private Button buttonAddOffer;
private Button buttonCancel;
private TextBox textBoxInputListPrice; private TextBox textBoxInputListPrice;
private TableLayoutPanel tableLayoutPanel1; private TableLayoutPanel tableLayoutPanel1;
private Label labelOutputDiscount; private Label labelOutputDiscount;
@ -387,5 +386,6 @@
private Label labelOutputPriceDelivered; private Label labelOutputPriceDelivered;
private Label labelInputLabel; private Label labelInputLabel;
private TextBox textBoxInputLabel; private TextBox textBoxInputLabel;
private Button buttonDelete;
} }
} }

@ -15,6 +15,7 @@ namespace QuantitativerAngebotsvergleich
private MainForm mainForm; private MainForm mainForm;
private Offer offer; private Offer offer;
private int existingOfferId; private int existingOfferId;
internal OfferDetail(MainForm mainForm, Offer existingOffer = null) internal OfferDetail(MainForm mainForm, Offer existingOffer = null)
{ {
InitializeComponent(); InitializeComponent();
@ -26,6 +27,9 @@ namespace QuantitativerAngebotsvergleich
{ {
this.Text = "Angebot hinzufügen"; this.Text = "Angebot hinzufügen";
offer = new(); offer = new();
// disable delete button
buttonDelete.Enabled = false;
} }
else else
{ {
@ -97,8 +101,10 @@ namespace QuantitativerAngebotsvergleich
return; return;
} }
private void buttonCancel_Click(object sender, EventArgs e) private void buttonDelete_Click(object sender, EventArgs e)
{ {
mainForm.DeleteOffer(existingOfferId);
Close(); Close();
} }

Loading…
Cancel
Save