Esempio n. 1
0
        static void crateClass()
        {
            Console.WriteLine("请输入一个班级");
            string name = Console.ReadLine();
            Class  Cls  = new Class();

            Cls.ClassName = name;
            ClassBusinessLayer cbl = new ClassBusinessLayer();

            cbl.Add(Cls);
        }
Esempio n. 2
0
        static void AddClass()
        {
            Console.WriteLine("请增加新的班级名");
            string name   = Console.ReadLine();
            Class  classb = new Class();

            classb.ClassName = name;
            ClassBusinessLayer cbl = new ClassBusinessLayer();

            cbl.Add(classb);
        }
Esempio n. 3
0
        static void crateClass()
        {
            Console.WriteLine("请输入一个班级名称");
            //接收用户输入传给name
            string name = Console.ReadLine();
            //创建博客对象
            Clas clas = new Clas();

            clas.ClasName = name;
            ClassBusinessLayer bbl = new ClassBusinessLayer();

            bbl.Add(clas);
        }