WPF Application master detail

Markus Freitag 3,786 Reputation points
2020-07-09T06:33:45.65+00:00

Hello together,

I want to add a order number, then add a material number with quantity.

Master, Detail with C#


OrderNumber = ………

Fill the list OrderNumbers

On right site I need a MaterialList

Input: Material = …….. Quantity = ……

     Add, Edit, Delete Button

Fille the list with MaterialNumbers and Quantity

Save it as XML.

Should be possible to reload it.

I'm looking for a good sample code.

Thanks in advance for your help!

Regards Markus

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,772 questions
0 comments No comments
{count} votes

11 answers

Sort by: Most helpful
  1. Markus Freitag 3,786 Reputation points
    2020-07-12T13:02:04.07+00:00

    Hi Peter,
    Workflow.
    Start Application
    Add new OrderNo with OrderName
    Fill the list with material
    Add next OrderNo and OrderName
    Fill list with material
    and so one.

    Another application ask me about the material. Is material empty (processed) I go to the next order automatically.

    Normally is to start the application with no order, empty.
    Only in case the another application makes an error, we should reload the current state.

    Maybe later I need to load the order and material list.
    Like this --> Load OrdersVW.xml
    Like this --> Load OrdersOpel.xml
    and save as.


    Order 1:n Material


    How you solve it the same OrderNo? Can you show me the code?

    On the edge. The forum takes getting used to.
    Formatting and did I post? Code sequences.
    I thought the old one was better. Maybe it'll be better here.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.