public MainWindow(controler c) { InitializeComponent(); // TODO: Complete member initialization this.c = c; this.Show(); }
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); }
public Payments(string t, controler c1) { InitializeComponent(); teacherLogin = t; c = c1; if (!c.teacher) { Payment_Request.IsEnabled = false; Create_coupon.IsEnabled = false; } }
public Materials(string t, controler c1) { InitializeComponent(); c = c1; teacherLogin = t; if (!c.teacher) { Add_Assigment.IsEnabled = false; Add_Material.IsEnabled = false; } }
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; } }
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); }
public model(controler controler) { c = controler; readMaterialCode(); }
public Menu0(string t, controler c1) { InitializeComponent(); c = c1; teacherLogin = t; }
public teacherManagement(string t, controler c1) { InitializeComponent(); c = c1; teacherLogin = t; }
public Users(string t, controler c1) { InitializeComponent(); teacherLogin = t; c = c1; }