示例#1
0
        public MainWindow(controler c)
        {
            InitializeComponent();

            // TODO: Complete member initialization
            this.c = c;
            this.Show();
        }
示例#2
0
        public void onStart(object sender, StartupEventArgs e)
        {
            controler c = new controler();
            model m = new model(c);
            MainWindow main = new MainWindow(c);
            c.setModel(m);
            c.setView(main);

        }
示例#3
0
 public Payments(string t, controler c1)
 {
     InitializeComponent();
     teacherLogin = t;
     c = c1;
     if (!c.teacher)
     {
         Payment_Request.IsEnabled = false;
         Create_coupon.IsEnabled = false;
     }
 }
示例#4
0
        public Materials(string t, controler c1)
        {
            InitializeComponent();
            c = c1;
            teacherLogin = t;
            if (!c.teacher)
            {
                Add_Assigment.IsEnabled = false;
                Add_Material.IsEnabled = false;

            }
        }
示例#5
0
 public Class_Menu(string t, controler c1)
 {
     InitializeComponent();
     teacherLogin = t;
     c = c1;
     if (!c.teacher)
     {
         Open_Lesson.IsEnabled = false;
         Add_Student.IsEnabled = false;
         Close_Lesson.IsEnabled = false;
         Delete_Lesson.IsEnabled = false;
     }
 }
示例#6
0
 public addMaterial(string t, controler c)
 {
     this.c = c;
     InitializeComponent();
     teacherLogin = t;
     List<user> students = c.findStudents(t);
     studentsList = new ComboBox();
     //studentsList.Name = "sl1";
     foreach (user u in students)
     {
         Item i = new Item(u.fname, u.lname);
         studentsList.Items.Add(i.toString());
     }
     studentsList.Height=25;
     studentsList.Width=100;
     addM.canv.Children.Add(studentsList);
     Canvas.SetTop(studentsList, 80);
     Canvas.SetLeft(studentsList,30);
 }
示例#7
0
 public model(controler controler)
 {
     c = controler;
     readMaterialCode();
 }
示例#8
0
 public Menu0(string t, controler c1)
 {
     InitializeComponent();
     c = c1;
     teacherLogin = t;
 }
 public teacherManagement(string t, controler c1)
 {
     InitializeComponent();
     c = c1;
     teacherLogin = t;
 }
示例#10
0
 public Users(string t, controler c1)
 {
     InitializeComponent();
     teacherLogin = t;
     c = c1;
 }