Esempio n. 1
0
        public MainWindow(controler c)
        {
            InitializeComponent();

            // TODO: Complete member initialization
            this.c = c;
            this.Show();
        }
Esempio n. 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);

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

            }
        }
Esempio n. 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;
     }
 }
Esempio n. 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);
 }
Esempio n. 7
0
 public model(controler controler)
 {
     c = controler;
     readMaterialCode();
 }
Esempio n. 8
0
 public Menu0(string t, controler c1)
 {
     InitializeComponent();
     c = c1;
     teacherLogin = t;
 }
 public teacherManagement(string t, controler c1)
 {
     InitializeComponent();
     c = c1;
     teacherLogin = t;
 }
Esempio n. 10
0
 public Users(string t, controler c1)
 {
     InitializeComponent();
     teacherLogin = t;
     c = c1;
 }