@@ -135,7 +135,6 @@ private void loadProfiles()
135135 textBoxUserId . Text = "" ;
136136 textBoxAlterID . Text = "" ;
137137 textBoxRemark . Text = "" ;
138- checkBoxAllowP . Checked = false ;
139138 comboBoxNetwork . SelectedIndex = 0 ;
140139 comboBoxSecurity . SelectedIndex = 0 ;
141140 }
@@ -150,7 +149,6 @@ private void listBoxServers_SelectedIndexChanged(object sender, EventArgs e)
150149 textBoxUserId . Text = sp . userId ;
151150 textBoxAlterID . Text = sp . alterId . ToString ( ) ;
152151 textBoxRemark . Text = sp . remark ;
153- checkBoxAllowP . Checked = sp . allowPassive ;
154152 comboBoxNetwork . SelectedIndex = sp . network ;
155153 comboBoxSecurity . SelectedIndex = sp . security ;
156154 }
@@ -210,14 +208,7 @@ private void textBoxRemark_TextChanged(object sender, EventArgs e)
210208 loadProfiles ( ) ;
211209 }
212210 }
213-
214- private void checkBoxAllowP_CheckedChanged ( object sender , EventArgs e )
215- {
216- if ( selectedServerIndex >= 0 )
217- {
218- profiles [ selectedServerIndex ] . allowPassive = checkBoxAllowP . Checked ;
219- }
220- }
211+
221212
222213 private void comboBoxNetwork_SelectedIndexChanged ( object sender , EventArgs e )
223214 {
@@ -239,5 +230,11 @@ private void comboBoxSecurity_SelectedIndexChanged(object sender, EventArgs e)
239230 profiles [ selectedServerIndex ] . security = comboBoxSecurity . SelectedIndex ;
240231 }
241232 }
233+
234+ private void buttonImport_Click ( object sender , EventArgs e )
235+ {
236+ var importWindow = new FormImport ( ) ;
237+ importWindow . ShowDialog ( this ) ;
238+ }
242239 }
243240}
0 commit comments