Example #1
0
        private void zatvaranje(object sender, System.ComponentModel.CancelEventArgs e)
        {
            //kada kliknemo na odustani ovo ce se izvrsiti , moramo da kastujemo ovo jer datacontext nije svestan da je onog tipa
            ManifestacijaViewModel aa = (ManifestacijaViewModel)DataContext;

            aa.odustaniPravljenjeManifestacije();
        }
Example #2
0
        public EditManifestacija()
        {
            InitializeComponent();
            DataContext = new ManifestacijaViewModel();

            //ovaj lanac else-if-ova sluzi kako bi osvezili polja comboboxa za KATEGORIJU CENA, jer se desavao bug koji je sa time ispravljen!
            if (KategorijaCena1.Text == Besplatno.Content.ToString())
            {
                Besplatno.IsSelected = true;
            }
            else if (KategorijaCena1.Text == NiskeCene.Content.ToString())
            {
                NiskeCene.IsSelected = true;
            }
            else if (KategorijaCena1.Text == SrednjeCene.Content.ToString())
            {
                SrednjeCene.IsSelected = true;
            }
            else if (KategorijaCena1.Text == VisokeCene.Content.ToString())
            {
                VisokeCene.IsSelected = true;
            }

            //sada isto to samo za mesto odrzavanja
            if (MestoOdrzavanja1.Text == MestoOdrzavanjaNapolju.Content.ToString())
            {
                MestoOdrzavanjaNapolju.IsSelected = true;
            }
            else if (MestoOdrzavanja1.Text == MestoOdrzavanjaUnutra.Content.ToString())
            {
                MestoOdrzavanjaUnutra.IsSelected = true;
            }

            //isto to samo za status sluzenaj alkohola
            if (StatusAlkohola1.Text == StatusNemaAlkohola.Content.ToString())
            {
                StatusNemaAlkohola.IsSelected = true;
            }
            else if (StatusAlkohola1.Text == StatusMozeDoneti.Content.ToString())
            {
                StatusMozeDoneti.IsSelected = true;
            }
            else if (StatusAlkohola1.Text == StatusKupujeNaLicuMesta.Content.ToString())
            {
                StatusKupujeNaLicuMesta.IsSelected = true;
            }
        }
 public OdustaniPravljenjeManifestacijeCommand(ManifestacijaViewModel viewModel)
 {
     _ViewModel = viewModel;
 }
 public RefreshEditCommand(ManifestacijaViewModel viewModel)
 {
     _ViewModel = viewModel;
 }
 public RemoveTipKojiSadrziManifestaciju(ManifestacijaViewModel viewModel)
 {
     _ViewModel = viewModel;
 }
 public KreirajNovuManifestacijuUTabeliCommand(ManifestacijaViewModel viewModel)
 {
     _ViewModel = viewModel;
 }
 public UbaciTipCommand(ManifestacijaViewModel viewModel)
 {
     _ViewModel = viewModel;
 }
        private void zatvaranje(object sender, System.ComponentModel.CancelEventArgs e)
        {
            ManifestacijaViewModel model = (ManifestacijaViewModel)DataContext;

            model.odustaniPravljenjeManifestacije();
        }
 public NovaManifestacija()
 {
     InitializeComponent();
     DataContext = new ManifestacijaViewModel();
 }
Example #10
0
 public PonistiPretraguManifestacijaCommand(ManifestacijaViewModel viewModel)
 {
     _ViewModel = viewModel;
 }
Example #11
0
 public ObrisiTipSaManifestacijamaCommand(ManifestacijaViewModel viewModel)
 {
     _ViewModel = viewModel;
 }
 public EditManifestacijaCommand(ManifestacijaViewModel viewModel)
 {
     _ViewModel = viewModel;
 }
Example #13
0
 public PretragaFilterManifestacije(ManifestacijaViewModel viewModel)
 {
     _ViewModel = viewModel;
 }
 public RemoveManifestacijaCommand(ManifestacijaViewModel viewModel)
 {
     _ViewModel = viewModel;
 }
 public AddManifestationIcon(ManifestacijaViewModel viewModel)
 {
     _ViewModel = viewModel;
 }
 public OdustaniOdBrisanjaetiketeCommand(ManifestacijaViewModel viewModel)
 {
     _ViewModel = viewModel;
 }