Esempio n. 1
0
        public void DeleteSubject(object sender, RoutedEventArgs e)
        {
            var dialog = new DeleteSubject();

            dialog.ShowDialog();
        }
Esempio n. 2
0
        public DemoTab()
        {
            InitializeComponent();

            MainListPonDemo    = new ObservableCollection <Term>();
            MainListUtoDemo    = new ObservableCollection <Term>();
            MainListSreDemo    = new ObservableCollection <Term>();
            MainListCetDemo    = new ObservableCollection <Term>();
            MainListPetDemo    = new ObservableCollection <Term>();
            MainListSubDemo    = new ObservableCollection <Term>();
            SideListDemo       = new ObservableCollection <Term>();
            classrooms_display = new ObservableCollection <string>();

            fillLists();

            LbSchedulePon.ItemsSource = MainListPonDemo;
            LbScheduleUto.ItemsSource = MainListUtoDemo;
            LbScheduleSre.ItemsSource = MainListSreDemo;
            LbScheduleCet.ItemsSource = MainListCetDemo;
            LbSchedulePet.ItemsSource = MainListPetDemo;
            LbScheduleSub.ItemsSource = MainListSubDemo;
            LbSide.ItemsSource        = SideListDemo;

            korak          = 0;
            timer          = new DispatcherTimer();
            timer.Tick    += startDemoTick;
            timer.Interval = new TimeSpan(0, 0, 0, 0, 1200);

            this.MouseUp += Grid_MouseUp;

            boja                = this.DodajMeni.Background;
            add_course          = new AddCourse();
            add_course.MouseUp += Grid_MouseUp;


            software = new Software("vs", "VisualStudio", "Make c# apps and more!", "Microsoft", "www.microsoft.com", "10/11/2012", "Windows", 230);
            MainWindow.softwares.Add(software);
            classroom = new Classroom("L4", "Ucionica neka.", 15, true, true, false, "Windows");
            MainWindow.classrooms.Add(classroom);
            ucionicaPrikaz.Items.Add(classroom.label);
            ucionicaPrikaz.Items.Add("L5");
            kurs = new Course("sw", "Ucimo mlade inzenjere", "Softversko inzenjerstvo i informacione tehnologije", "11/11/2014");


            tables          = new Tables();
            tables.MouseUp += Grid_MouseUp;

            add_subj          = new AddSubject();
            add_subj.MouseUp += Grid_MouseUp;
            predmet           = new Subject("pr1", "Predmet 1", "opis predmeta 1", kurs, 20, 4, 2, true, true, false, "Windows");
            predmet2          = new Subject("pr2", "Predmet 2", "opis predmeta 2", kurs, 12, 3, 3, true, true, false, "Windows");
            MainWindow.subjects.Add(predmet2);
            term = new Term("HCI", "Human computer interaction", "pr1", "Predmet 1", 4);
            for (int i = 0; i < predmet.numberOfClasses; i++)
            {
                SideListDemo.Add(new Term("HCI", "Human computer interaction", "pr1", "Predmet 1", 4));
            }

            del_subj = new DeleteSubject();

            timer.Start();
        }