H
H
Hirty2016-05-26 09:41:19
WPF
Hirty, 2016-05-26 09:41:19

Pass data from class to main thread?

string save_proxy = textBox.Text;
            Main save = new Main();
            save.save(save_proxy);

This is how data is passed to the class, but how back?
You can create a global variable in the class and then refer to it and take the data, but this is not correct as far as I know.
It is necessary to transfer data from the class to the main thread.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question