-
Notifications
You must be signed in to change notification settings - Fork 8
/
FtpSettingsWindow.xaml
56 lines (56 loc) · 3.82 KB
/
FtpSettingsWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<Window x:Class="ValheimSaveShield.FtpSettingsWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:ValheimSaveShield"
mc:Ignorable="d"
xmlns:ui="http://schemas.modernwpf.com/2019"
ui:WindowHelper.UseModernWindowStyle="True"
Title="FTP Import" Height="Auto" SizeToContent="Height" Width="400">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Label Content="Server IP" Margin="5" VerticalAlignment="Center" Grid.Row="0" Grid.Column="0"/>
<Label Content="Port" Margin="5" VerticalAlignment="Center" Grid.Row="0" Grid.Column="1"/>
<TextBox x:Name="txtIP" Margin="5" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0"/>
<TextBox x:Name="txtPort" Margin="5" VerticalAlignment="Center" Grid.Row="1" Grid.Column="1"/>
<Label Content="Worlds Path" ToolTip="The path on the FTP server to the folder containing your world files" Margin="5" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2"/>
<TextBox x:Name="txtWorldsPath" ToolTip="The path on the FTP server to the folder containing your world files" Margin="5" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2"/>
<Label Content="Username" Margin="5" VerticalAlignment="Center" Grid.Row="4" Grid.Column="0"/>
<Label Content="Password" Margin="5" VerticalAlignment="Center" Grid.Row="4" Grid.Column="1"/>
<TextBox x:Name="txtUsername" Margin="5" VerticalAlignment="Center" Grid.Row="5" Grid.Column="0"/>
<TextBox x:Name="txtPassword" Margin="5" VerticalAlignment="Center" Grid.Row="5" Grid.Column="1"/>
<Label Content="FTP Mode" Margin="5" VerticalAlignment="Center" Grid.Row="6" Grid.Column="0"/>
<ComboBox x:Name="cmbFtpMode" Margin="5" VerticalAlignment="Center" Grid.Row="7" Grid.Column="0" />
<Label Content="Local Save Folder Destination" ToolTip="The local save folder where you want the remote worlds saved" Margin="5" VerticalAlignment="Center" Grid.Row="8" Grid.ColumnSpan="2"/>
<ListBox x:Name="lstSaveFolder" ToolTip="The local save folder where you want the remote worlds saved" Margin="5" Grid.Row="9" Grid.ColumnSpan="2"/>
<Grid Grid.Row="10" Grid.ColumnSpan="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Button x:Name="btnSave" Content="Save" HorizontalAlignment="Center" Margin="5" Grid.Column="1" Click="btnSave_Click"/>
<Button x:Name="btnTest" Content="Test" HorizontalAlignment="Center" Margin="5" Grid.Column="2" Click="btnTest_Click"/>
<Button x:Name="btnCancel" Content="Cancel" HorizontalAlignment="Center" Margin="5" Grid.Column="3" Click="btnCancel_Click"/>
</Grid>
</Grid>
</Window>