Mike ONeill
Tomato Guru
South Africa
103 Posts |
Posted - Apr 12 2007 : 07:02:46 AM
|
How do I set up to format the look of a refactored method
The Auto Text tremplate looks like
Private Sub $SymbolName$( $ParameterList$ )
$MethodBody$
End Sub
when I select Extract Method I get the dialog for MyMethod , the preview in the grey shows
bool MyMethod(Dim param As New param, ByVal processID As Int32, ByVal processStepID As Int32, ByVal parameterTypeID As Int32, ByVal active As processID, ByVal processStepID As Int32, ByVal parameterTypeID As Int32, ByVal active As processStepID, ByVal parameterTypeID As Int32, ByVal active As parameterTypeID, ByVal active As active)
before is
ParametersListDataSet1 = param.ParametersListDataSet(processID, processStepID, parameterTypeID, active) ParametersDataGridView.DataSource = ParametersListDataSet1
After IS
Private Sub MyMethod( Dim param As New param, ByVal processID As Int32, ByVal processStepID As Int32, ByVal parameterTypeID As Int32, ByVal active As processID, ByVal processStepID As Int32, ByVal parameterTypeID As Int32, ByVal active As processStepID, ByVal parameterTypeID As Int32, ByVal active As parameterTypeID, ByVal active As active )
Return ParametersListDataSet1 = param.ParametersListDataSet(processID, processStepID, parameterTypeID, active) ParametersDataGridView.DataSource = ParametersListDataSet1 ;
End Sub
this throws all sorts of syntax errors
How can I format it be
Private Sub MyMethod(ByVal processID As Int32, ByVal processStepID As Int32, ByVal parameterTypeID As Int32, ByVal active As Boolean)
ParametersListDataSet1 = param.ParametersListDataSet(processID, processStepID, parameterTypeID, active) ParametersDataGridView.DataSource = ParametersListDataSet1
End Sub |
|