You must be registered to post a reply. Click here to register.
T O P I C R E V I E W
MiddleTommy
Posted - Jan 21 2008 : 2:41:27 PM Hey this would save me tons of time.
I hate having to type lists like txtDate.Text = p.Date; CheckBox1.ISChecked = p.IsFOB; Textbox1.Text = p.part; etc etc etc...
the longer the list the more terrible. But what is even worse is when you have to switch the list
Could you make a refactor that switches sides of the equal sign. to easily make the above list into p.Date = txtDate.Text; p.IsFOB = CheckBox1.ISChecked; p.part = Textbox1.Text;
1 L A T E S T R E P L I E S (Newest First)
feline
Posted - Jan 21 2008 : 5:05:41 PM use the IDE's find and replace in regular expression mode. For VS2005 this works well:
Find {\\t+}{.*} = {.*}; Replace with \\1\\3 = \\2;