E
E
Eugene2014-11-25 22:51:26
Programming
Eugene, 2014-11-25 22:51:26

What is the best way to store the entered data?

Suppose I do something like a data constructor, in the first form data about the client is entered into textboxes, in the next some more data, but suddenly I have to go back and change the entered data in the first form.
What is better to do: when switching from the first form to the second, save the data in a static class, so that when you return, you can refer to this class and fill the textbox (or any other fields) with data, write it directly to the database, or what? Those. in essence I need global variables, but is this correct?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Armenian Radio, 2014-11-25
@gloomkolomna

Usually such a "Wizard" is implemented as a tabbed window, in which the Forward and Back buttons switch between these tabs. That is, the data remains in the same controls, just the tab switches to the next one. And when you need to return - the user simply gets to the same tab and that's it.
And no serialization is needed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question