Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Первое задание");
            SuperQueue <DateTime> sq = new SuperQueue <DateTime>();

            sq.Add(new DateTime());
            sq.Add(new DateTime());
            sq.Add(new DateTime());
            sq.Add(new DateTime()); ///искл
            Console.WriteLine();


            Console.WriteLine("Второе задание");
            string[] s = { "Proga", "CSIS", "IGIG", "DCP", "OSI" };
            var      c = s.Take(3).OrderBy(t => t[0]).OrderByDescending(t => t.Length);

            foreach (string z in c)
            {
                Console.WriteLine(z);
            }
            Console.WriteLine();


            Console.WriteLine("Третье задание");
            Window x = new Window();
            Window y = new Window();
            User   u = new User();

            u.move += (Window a, Window b) =>
            {
                a.Move();
                b.Move();
            };
            u.Move(x, y);
        }