예제 #1
0
        static void Main(string[] args)
        {
            Prises prises = new Prises();
            Prise  prise1 = new Prise("Картошка", "ATB", 5.30);
            Prise  prise2 = new Prise("Морковь", "Varus", 3.35);
            Prise  prise3 = new Prise("Апельсин", "Ashan", 10);

            prises.InputData(prise1);
            prises.InputData(prise2);
            prises.InputData(prise3);
            prises.prisesSorting();
            prises.userConditionOrder();
            Console.ReadLine();
        }
예제 #2
0
 private void Show(Prise p)
 {
     Console.WriteLine($"{p.Name}--{p.Shop}--{p.Cash}");
 }
예제 #3
0
 public void InputData(Prise p)
 {
     prises.Add(p);
 }