private void OnPharmaciesMenuItemClicked(object sender, RoutedEventArgs e)
        {
            var tab = new BaseTabItem("Аптеки");

            tab.SetView(new PharmaciesView());
            AddTab(tab);
        }
        private void OnDrugsMenuItemClicked(object sender, RoutedEventArgs e)
        {
            var tab = new BaseTabItem("Лекарства");

            tab.SetView(new DrugsView(new List <Drugs.Drugs>(), false));
            AddTab(tab);
        }
        private void OnDealersMenuItemClicked(object sender, RoutedEventArgs e)
        {
            var tab = new BaseTabItem("Доставчици");

            tab.SetView(new DealersView());
            AddTab(tab);
        }
Пример #4
0
 private void AddTab(BaseTabItem tab)
 {
     tabControl.Items.Add(tab);
     tabControl.SelectedItem = tab;
 }