private void choose_software(object sender, RoutedEventArgs e)
        {
            Choose_Software.chosen_software = current_sws;
            Choose_Software sw = new Choose_Software(current_os);

            sw.Closed += new EventHandler((sender2, e2) => load_data(sender2, e2));
            sw.ShowDialog();
        }
Пример #2
0
        private void add_software(object sender, RoutedEventArgs e)
        {
            Classroom.OpSystem a;
            if (win.IsChecked == true)
            {
                a = Classroom.OpSystem.Windows;
            }
            else if (linux.IsChecked == true)
            {
                a = Classroom.OpSystem.Linux;
            }
            else
            {
                a = Classroom.OpSystem.WindowsAndLinux;
            }
            Choose_Software.chosen_software = current_sub.Software;
            Choose_Software cs = new Choose_Software(a);

            cs.Closed += new EventHandler((sender2, e2) => load_data(sender2, e2));
            cs.ShowDialog();
        }