public MainWindow() { InitializeComponent(); MainLanguage = "Русский"; fileName = string.Empty; isChanged = false; UserItems = new List <StoreItem>(); ShopContext shopContext = new ShopContext(); List <string> shops = shopContext.Shop.Select(s => s.Name).ToList(); ShopList.ItemsSource = shops.ToArray(); MainFunctions.Main = this; DBItems.Source = new Uri(@"UserPages\Main\MainFoodTypePage.xaml", UriKind.RelativeOrAbsolute); this.Resources = MainFunctions.GetLanguageResource(); }
public AdminWindow() { InitializeComponent(); this.Resources = MainFunctions.GetLanguageResource(); }