public Software(string v1, string v2, Classroom.OpSystem linux, string v3, string v4, int v5, double v6, string v7) { id = v1; name = v2; os = linux; maker = v3; site = v4; year = v5; price = v6; description = v7; }
public Add_Software(Classroom.OpSystem os) { current_sw = new Software(); added = new List <int>(); InitializeComponent(); if (os.Equals(Classroom.OpSystem.Windows)) { lin.Visibility = Visibility.Hidden; } else if (os.Equals(Classroom.OpSystem.Linux)) { win.Visibility = Visibility.Hidden; lin.IsChecked = true; } }
public Subject(string v1, string v2, string v3, Course course, int v4, int v5, int v6, bool v7, bool v8, bool v9, Classroom.OpSystem linux, List <Software> s) { id = v1; name = v2; description = v3; size_of_group = v4; duration_of_period = v5; num_of_periods = v6; board = v7; smart_board = v8; projector = v9; this.course = course; os = linux; software = s; }
public Software_Multiple(Subject subj) { current_sws = subj.Software; current_os = subj.Os; index = MainWindow.allSubjects.IndexOf(subj); sub = true; foreach (Software sw in current_sws) { Show_Data.Add(sw); } InitializeComponent(); dataGrid.ItemsSource = Show_Data; ar_sw.Visibility = Visibility.Visible; add_sw_btn.Visibility = System.Windows.Visibility.Hidden; load_kombo(); }
public Software_Multiple(Classroom cr) { current_sws = cr.Software; current_os = cr.Os; index = MainWindow.allClassrooms.IndexOf(cr); sub = false; foreach (Software sw in current_sws) { Show_Data.Add(sw); } InitializeComponent(); dataGrid.ItemsSource = Show_Data; ar_sw.Visibility = Visibility.Visible; add_sw_btn.Visibility = System.Windows.Visibility.Hidden; load_kombo(); }
public Choose_Software(Classroom.OpSystem a) { this.DataContext = this; exitDemoMode.InputGestures.Add(new KeyGesture(Key.Escape)); this.Closing += new CancelEventHandler(Window_Closing); os = a; InitializeComponent(); all = new ObservableCollection <Software>(); added = new ObservableCollection <Software>(); if (chosen_software.Count() == 0) { foreach (Software sw in MainWindow.allSoftware) { if (a.Equals(Classroom.OpSystem.WindowsAndLinux) || sw.Os.Equals(a) || sw.Os.Equals(Classroom.OpSystem.WindowsAndLinux)) { all.Add(sw); } } } else { foreach (Software sw in MainWindow.allSoftware) { if (a.Equals(Classroom.OpSystem.WindowsAndLinux) || sw.Os.Equals(a) || sw.Os.Equals(Classroom.OpSystem.WindowsAndLinux)) { if (chosen_software.Contains(sw)) { added.Add(sw); } else { all.Add(sw); } } } } addedSoftwareDG.ItemsSource = added; allSoftwareDG.ItemsSource = all; }