|
181 | 181 | </Grid> |
182 | 182 |
|
183 | 183 | <!-- Server config fields - without Name field --> |
184 | | - <Grid ColumnDefinitions="Auto,*" RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto" |
| 184 | + <Grid ColumnDefinitions="Auto,*" RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto" |
185 | 185 | IsVisible="{Binding SelectedServer}" Margin="0,15,0,0"> |
186 | 186 | <!-- Connection settings --> |
187 | 187 | <TextBlock Grid.Row="0" Grid.Column="0" Text="IP Address:" Margin="0,5,5,5"/> |
|
199 | 199 | PasswordChar="*" Margin="0,5" |
200 | 200 | IsReadOnly="{Binding !IsEditingServer}"/> |
201 | 201 |
|
| 202 | + <!-- RCON Test Button --> |
| 203 | + <Button Grid.Row="4" Grid.Column="1" Content="Test RCON Connection" |
| 204 | + Command="{Binding TestRconConnectionCommand}" |
| 205 | + IsVisible="{Binding SelectedServer}" |
| 206 | + HorizontalAlignment="Right" |
| 207 | + Margin="0,5,0,10" |
| 208 | + Padding="10,3"/> |
| 209 | + |
202 | 210 | <!-- FTP settings --> |
203 | | - <TextBlock Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" Text="FTP Settings" |
| 211 | + <TextBlock Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" Text="FTP Settings" |
204 | 212 | FontWeight="Bold" Margin="0,15,0,5"/> |
205 | 213 |
|
206 | | - <TextBlock Grid.Row="5" Grid.Column="0" Text="Protocol:" Margin="0,5,5,5"/> |
207 | | - <ComboBox Grid.Row="5" Grid.Column="1" |
| 214 | + <TextBlock Grid.Row="6" Grid.Column="0" Text="Protocol:" Margin="0,5,5,5"/> |
| 215 | + <ComboBox Grid.Row="6" Grid.Column="1" |
208 | 216 | SelectedIndex="{Binding SelectedServer.FtpProtocol}" |
209 | 217 | IsEnabled="{Binding IsEditingServer}" |
210 | 218 | Margin="0,5"> |
211 | 219 | <ComboBoxItem>FTP</ComboBoxItem> |
212 | 220 | <ComboBoxItem>SFTP</ComboBoxItem> |
213 | 221 | </ComboBox> |
214 | 222 |
|
215 | | - <TextBlock Grid.Row="6" Grid.Column="0" Text="FTP Host:" Margin="0,5,5,5"/> |
216 | | - <TextBox Grid.Row="6" Grid.Column="1" Text="{Binding SelectedServer.FtpHost}" Margin="0,5" |
| 223 | + <TextBlock Grid.Row="7" Grid.Column="0" Text="FTP Host:" Margin="0,5,5,5"/> |
| 224 | + <TextBox Grid.Row="7" Grid.Column="1" Text="{Binding SelectedServer.FtpHost}" Margin="0,5" |
217 | 225 | IsReadOnly="{Binding !IsEditingServer}"/> |
218 | 226 |
|
219 | | - <TextBlock Grid.Row="7" Grid.Column="0" Text="FTP Port:" Margin="0,5,5,5"/> |
220 | | - <TextBox Grid.Row="7" Grid.Column="1" Text="{Binding SelectedServer.FtpPort}" Margin="0,5" |
| 227 | + <TextBlock Grid.Row="8" Grid.Column="0" Text="FTP Port:" Margin="0,5,5,5"/> |
| 228 | + <TextBox Grid.Row="8" Grid.Column="1" Text="{Binding SelectedServer.FtpPort}" Margin="0,5" |
221 | 229 | IsReadOnly="{Binding !IsEditingServer}"/> |
222 | 230 |
|
223 | | - <TextBlock Grid.Row="8" Grid.Column="0" Text="FTP Username:" Margin="0,5,5,5"/> |
224 | | - <TextBox Grid.Row="8" Grid.Column="1" Text="{Binding SelectedServer.FtpUsername}" Margin="0,5" |
| 231 | + <TextBlock Grid.Row="9" Grid.Column="0" Text="FTP Username:" Margin="0,5,5,5"/> |
| 232 | + <TextBox Grid.Row="9" Grid.Column="1" Text="{Binding SelectedServer.FtpUsername}" Margin="0,5" |
225 | 233 | IsReadOnly="{Binding !IsEditingServer}"/> |
226 | 234 |
|
227 | | - <TextBlock Grid.Row="9" Grid.Column="0" Text="FTP Password:" Margin="0,5,5,5"/> |
228 | | - <TextBox Grid.Row="9" Grid.Column="1" Text="{Binding SelectedServer.FtpPassword}" |
| 235 | + <TextBlock Grid.Row="10" Grid.Column="0" Text="FTP Password:" Margin="0,5,5,5"/> |
| 236 | + <TextBox Grid.Row="10" Grid.Column="1" Text="{Binding SelectedServer.FtpPassword}" |
229 | 237 | PasswordChar="*" Margin="0,5" |
230 | 238 | IsReadOnly="{Binding !IsEditingServer}"/> |
231 | 239 |
|
| 240 | + <!-- FTP Test Button --> |
| 241 | + <Button Grid.Row="11" Grid.Column="1" Content="Test FTP Connection" |
| 242 | + Command="{Binding TestFtpConnectionCommand}" |
| 243 | + IsVisible="{Binding SelectedServer}" |
| 244 | + HorizontalAlignment="Right" |
| 245 | + Margin="0,5,0,10" |
| 246 | + Padding="10,3"/> |
| 247 | + |
232 | 248 | <!-- Action buttons (conditional display based on edit mode) --> |
233 | | - <StackPanel Grid.Row="10" Grid.Column="0" Grid.ColumnSpan="2" |
| 249 | + <StackPanel Grid.Row="12" Grid.Column="0" Grid.ColumnSpan="2" |
234 | 250 | Orientation="Horizontal" HorizontalAlignment="Right" |
235 | 251 | Margin="0,15,0,0"> |
236 | 252 | <!-- Buttons visible when NOT in edit mode --> |
|
0 commit comments