public void Init(Salon s) { viewModel = new AdministracijaNamestajaViewModel(s); DataContext = viewModel; if (Mode == 1) { tbNaziv.IsReadOnly = true; } }
public void Init(Salon s) { viewModel = new AdministracijaNamestajaViewModel(s); DataContext = viewModel; }