当前位置: 首页>>代码示例>>C#>>正文


C# Invoice.Display方法代码示例

本文整理汇总了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();
        }
开发者ID:archermarc085,项目名称:Classes,代码行数:58,代码来源:Program.cs


注:本文中的Invoice.Display方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。