Example #1
0
        private void ShowItemData(int id)
        {
            FactoryFormWindow FactoryWindow = new FactoryFormWindow(id);

            FactoryWindow.ShowDialog();

            if (FactoryWindow.DialogResult.HasValue && FactoryWindow.DialogResult.Value)
            {
                Refresh();
            }
        }
Example #2
0
        private void AddFactory_Click(object sender, RoutedEventArgs e)
        {
            FactoryFormWindow ProductWindowWindow = new FactoryFormWindow();

            ProductWindowWindow.ShowDialog();

            if (ProductWindowWindow.DialogResult.HasValue && ProductWindowWindow.DialogResult.Value)
            {
                Refresh();
            }
        }
Example #3
0
        private void ShowFactoryButton_Click(object sender, RoutedEventArgs e)
        {
            if (_viewModel.SelectedFactory != null)
            {
                //_viewModel.SelectedUser.Id
                FactoryFormWindow FactoryWindow = new FactoryFormWindow(_viewModel.SelectedFactory.Id);
                FactoryWindow.ShowDialog();

                if (FactoryWindow.DialogResult.HasValue && FactoryWindow.DialogResult.Value)
                {
                    Refresh();
                }
            }
            else
            {
                MessageBoxResult result = MessageBox.Show("Para ver el detalle de un Factoría, primero selecciona un elemento de la lista",
                                                          "Confirmation",
                                                          MessageBoxButton.OK,
                                                          MessageBoxImage.Warning);
            }
        }