Пример #1
0
        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();
        }
Пример #2
0
 public AdminWindow()
 {
     InitializeComponent();
     this.Resources = MainFunctions.GetLanguageResource();
 }