public NewMarker(string userName) { InitializeComponent(); loginName = userName; DataContext = markercontext; bll = new BllForUi(); City_combo.ItemsSource = bll.GetAllCities(); if (loginName == "admin") { MarkerType_combo.Visibility = Visibility.Visible; MarkerType_combo.ItemsSource = bll.GetAllPlaceTypes(); } }
public NewCity() { InitializeComponent(); DataContext = context; bll = new BllForUi(); }
public NewMarkerType() { InitializeComponent(); DataContext = context; bll = new BllForUi(); }