I am developing a program, with a database and a GUI which displays parts of the database.
Let's suppose I have a textblock which contains data from the database (found with a query). If I want to use the value of this textblock somewhere else in the program, should I better read it from the textblock, or call it a second time from the database?
In other words is it OK, in term of performance and maintainability, to use GUI displayed results of SQL query as an input from other functions, instead of doing new queries?