Example #1
0
        private void AddButton_Click(object sender, RoutedEventArgs e)
        {
            var Ord        = new Client();
            var NewOrdWind = new CreateWindow(Ord);

            if ((bool)NewOrdWind.ShowDialog())
            {
                ServiceList = Core.DB.Client.ToList();
                PropertyChanged(this, new PropertyChangedEventArgs("ServiceList"));
                PropertyChanged(this, new PropertyChangedEventArgs("FilteredServiceCount"));
                PropertyChanged(this, new PropertyChangedEventArgs("ServiceCount"));
            }
            //Ord.ShowDialog();
        }
Example #2
0
        private void EditOrder_Click(object sender, RoutedEventArgs e)
        {
            var SelectedOrder = ProductListView.SelectedItem as Client;

            if (SelectedOrder == null)
            {
                MessageBox.Show("Не выбран клиент");
                return;
            }

            var EditOrderWindow = new CreateWindow(SelectedOrder);

            if ((bool)EditOrderWindow.ShowDialog())
            {
                PropertyChanged(this, new PropertyChangedEventArgs("ServiceList"));;
            }
        }