Exemplo n.º 1
0
        private void btnAddM_Click(object sender, RoutedEventArgs e)
        {
            WinMachine window = new WinMachine();

            window.ShowDialog();

            dgMachine.ItemsSource = ProcessFactory.GetMachinerProcess().GetList();
        }
Exemplo n.º 2
0
        private void btnEditM_Click(object sender, RoutedEventArgs e)
        {
            MachineDto item = dgMachine.SelectedItem as MachineDto;

            if (item == null)
            {
                MessageBox.Show("Выберите запись для редактирования", "Редактирование");
                return;
            }

            WinMachine window = new WinMachine();

            window.Load(item);
            window.ShowDialog();
            btnUpdateM_Click(sender, e);
        }