예제 #1
0
        private void ShowItemData(int id)
        {
            ClientFormWindow ClientWindow = new ClientFormWindow(id);

            ClientWindow.ShowDialog();

            if (ClientWindow.DialogResult.HasValue && ClientWindow.DialogResult.Value)
            {
                Refresh();
            }
        }
예제 #2
0
        private void AddClient_Click(object sender, RoutedEventArgs e)
        {
            ClientFormWindow ClientWindowWindow = new ClientFormWindow();

            ClientWindowWindow.ShowDialog();

            if (ClientWindowWindow.DialogResult.HasValue && ClientWindowWindow.DialogResult.Value)
            {
                Refresh();
            }
        }
예제 #3
0
        private void ShowClientButton_Click(object sender, RoutedEventArgs e)
        {
            if (_viewModel.SelectedClient != null)
            {
                ClientFormWindow ClientWindow = new ClientFormWindow(_viewModel.SelectedClient.Id);
                ClientWindow.ShowDialog();

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