private void napravi_novi_Click(object sender, RoutedEventArgs e) { zaustavi(); RasporedPage rasp = RasporedPage.getInstance(); rasp.Novi_Metoda(); postavi_novi(); }
public static RasporedPage getInstance() { if (instance == null) { instance = new RasporedPage(); } return(instance); }
private void ucitaj_postojeci_Click(object sender, RoutedEventArgs e) { zaustavi(); RasporedPage rasp = RasporedPage.getInstance(); if (rasp.Ucitavanje_Metoda()) { postavi_pregled(); } }
private void postavi_novi() { RasporedPage raspored = RasporedPage.getInstance(); raspored.odabranP.Visibility = Visibility.Visible; raspored.odabir_predmeta.Visibility = Visibility.Visible; raspored.confirm_ucionice_moj.Visibility = Visibility.Hidden; raspored.confirm_ucionice.Visibility = Visibility.Hidden; raspored.prikazUcionica_Moj.Visibility = Visibility.Hidden; raspored.button_save.Visibility = Visibility.Hidden; raspored.prikazTermina.Visibility = Visibility.Hidden; raspored.Label_odabir_termina.Visibility = Visibility.Hidden; raspored.Obrisi.Visibility = Visibility.Hidden; raspored.prikazUcionica.Visibility = Visibility.Hidden; raspored.Label_odabir_ucionice.Visibility = Visibility.Hidden; raspored.glavniGrid.Visibility = Visibility.Hidden; raspored.skroler.Visibility = Visibility.Hidden; raspored.odabir_predmeta_dugme.Visibility = Visibility.Visible; MainFrame.Content = raspored; }