Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Looking for a different code approach in C# , Please suggest.

$
0
0

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);


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>