Skip to content

Commit b81b0fe

Browse files
committed
refactored
prolly last commit to master, now a protected branch
1 parent c135b66 commit b81b0fe

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Encryption App/UI/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<ColumnDefinition Width="125*"/>
3131
</Grid.ColumnDefinitions>
3232
<Button Content="Decrypt" HorizontalAlignment="Left" Margin="7,198.04,0,0" VerticalAlignment="Top" Width="284" Height="143" Grid.Column="1" Click="Decrypt_Click"/>
33-
<TextBox HorizontalAlignment="Left" Height="23" Margin="35,35.04,0,0" TextWrapping="Wrap" Text="File Path" VerticalAlignment="Top" Width="238" x:Name="DFileTxtBox" Grid.ColumnSpan="2"/>
33+
<TextBox HorizontalAlignment="Left" Height="23" Margin="35,35.04,0,0" TextWrapping="Wrap" Text="File Path" VerticalAlignment="Top" Width="238" x:Name="DecryptFileLocBox" Grid.ColumnSpan="2"/>
3434
<Button Content="Browse" HorizontalAlignment="Left" Margin="242,35.04,0,0" VerticalAlignment="Top" Width="75" Height="23" Grid.Column="1" Click="FilePath_Click"/>
3535
<TextBox Grid.Column="1" HorizontalAlignment="Left" Height="23" Margin="7,114.04,0,0" TextWrapping="Wrap" Text="Password" VerticalAlignment="Top" Width="195" x:Name="PwdTxtBox"/>
3636

Encryption App/UI/MainWindow.xaml.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace Encryption_App
2222
/// </summary>
2323
public partial class MainWindow : Window
2424
{
25-
List<String> DropDownItems = new List<string> { "Choose Option...", "Cow", "Chicken" };
25+
List<String> DropDownItems = new List<string> { "Choose Option...", "Encrypt a file", "Encrypt a file for sending to someone" };
2626

2727

2828
public MainWindow()
@@ -54,7 +54,7 @@ private void FilePath_Click(object sender, RoutedEventArgs e)
5454

5555
if (result == true)
5656
{
57-
DFileTxtBox.Text = openFileDialog.FileName;
57+
DecryptFileLocBox.Text = openFileDialog.FileName;
5858
}
5959
}
6060

@@ -90,7 +90,7 @@ private void Encrypt_Click(object sender, RoutedEventArgs e)
9090
private void Decrypt_Click(object sender, RoutedEventArgs e)
9191
{
9292
string pwd = PwdTxtBox.Text;
93-
string filePath = DFileTxtBox.Text;
93+
string filePath = DecryptFileLocBox.Text;
9494
byte[] data;
9595

9696
FileInfo f = new FileInfo(filePath);
@@ -105,7 +105,6 @@ private void Decrypt_Click(object sender, RoutedEventArgs e)
105105
{
106106
bw.Write(data);
107107
}
108-
109108
}
110109
}
111110
}

0 commit comments

Comments
 (0)