You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
902 B
C#
38 lines
902 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Übungen_LF6_WinFormanwendung
|
|
{
|
|
class OrderDetails
|
|
{
|
|
//Objektproperties
|
|
public string ORDERID { get; set; }
|
|
public string PRODUCTID{ get; set; }
|
|
public string UNITPRIZE { get; set; }
|
|
public string QUANTITY { get; set; }
|
|
public string DISCOUNT { get; set; }
|
|
|
|
|
|
|
|
//Standartkonstruktor
|
|
public OrderDetails()
|
|
{
|
|
|
|
}
|
|
|
|
public OrderDetails(string[] CSVDATA)
|
|
{
|
|
// Einlesen und Erstellen eines Objektes mit CSVDaten
|
|
ORDERID = CSVDATA[0];
|
|
PRODUCTID = CSVDATA[1];
|
|
UNITPRIZE = CSVDATA[2];
|
|
QUANTITY = CSVDATA[3];
|
|
DISCOUNT = CSVDATA[4];
|
|
|
|
}
|
|
}
|
|
}
|