Exemplo n.º 1
0
        private void MI13_Click(object sender, RoutedEventArgs e)
        {
            Add_Brend_Category ABC = new Add_Brend_Category(MI13.Header.ToString());

            this.Visibility = Visibility.Hidden;
            ABC.ShowDialog();
            this.Visibility = Visibility.Visible;
        }
Exemplo n.º 2
0
        private void ADDBrend_Click(object sender, RoutedEventArgs e)
        {
            //кнопка добавления бренда вызывает окно добавления бренда
            Add_Brend_Category abc = new Add_Brend_Category("Бренд");

            abc.ShowDialog();
            MContext     mc = new MContext();
            List <Brend> lb = mc.Brends.OrderBy(x => x.Name).ToList();

            CBBrend.ItemsSource = lb;
        }