本文整理汇总了C#中Invoice.Display方法的典型用法代码示例。如果您正苦于以下问题:C# Invoice.Display方法的具体用法?C# Invoice.Display怎么用?C# Invoice.Display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Invoice
的用法示例。
在下文中一共展示了Invoice.Display方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Main
static void Main(string[] args)
{
//Task1
Address addressdefault = new Address();
Address address = new Address() { Apartment = 110 , City = "Kiev", Country = "Ukraine", House = 50 , Index = 58000, Street = "Hreshatik"};
Address addressChangedIndex = new Address(10000);
addressdefault.DisplayAddress();
address.DisplayAddress();
Console.WriteLine(addressChangedIndex.ToString());
//Task 2
string str = "";
double number1 = 0;
double number2 = 0;
number1 = str.CheckDoubleDigits();
number2 = str.CheckDoubleDigits();
Rectangle rectangle = new Rectangle(number1, number2);
Console.WriteLine(rectangle.ToString());
//Task 3
Book book = new Book("Programming","Troelsen","C#");
book.Show();
Console.ResetColor();
//Task 4
Point A = new Point(1, 2);
Point B = new Point(2, 1);
Point C = new Point(3, 2);
Figure figure = new Figure(A, B, C);
figure.Display();
//Task 5
User user = new User(login:"link", password: "3532jgjfd", name: "Jack", sername:"...");
user.Output();
//Task 6
Converter conv = new Converter(24.6081, 25.99,0.3274);
conv.Sum = 10.11;
conv.ChooseCurrency();
conv.ExchangeCurrency();
//Task 7
Employee employee = new Employee("User", "Relly");
employee.Display();
//Task 8
Invoice invoice = new Invoice(10000, "Customer" ,"Provider");
invoice.Article = "PC";
invoice.Quantity = 2;
invoice.Display();
Console.ReadLine();
Console.ReadLine();
}