Hi,
I have a very long method with GUI updates and calling a wrapper. I want to write the code more clean and OOP design. The method is running in several parallel threads . The method update a tree , progessbar controls and of course calls the wrapper. The wrapper has different methods with different parameters and properties.
What is a good approach to handle more efficient the code. Below is a sample code from the long method.
Thanks
TreeNode tn = AddResults(treeView1.Nodes,object); SetNodeColor(treeView1, tn, Color.Blue); SetNodeColor(treeView1, AddResults(tn.Nodes, "Wait ...."), Color.Blue); increaseprogressbar(progressBar); object.DoSomething(parameter,parameter,parameter, parameter);