From a8a6deb8eed203ee06a5fd7258c03514442f2b1f Mon Sep 17 00:00:00 2001 From: Jan Sandbrink Date: Thu, 4 Apr 2013 15:18:47 +0200 Subject: [PATCH] display directory --- DriveKeepAlive/MainWindow.xaml | 9 +++++++-- DriveKeepAlive/MainWindow.xaml.cs | 4 +++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/DriveKeepAlive/MainWindow.xaml b/DriveKeepAlive/MainWindow.xaml index 6ce4da0..7e56e07 100644 --- a/DriveKeepAlive/MainWindow.xaml +++ b/DriveKeepAlive/MainWindow.xaml @@ -3,8 +3,13 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Drive Keep-alive" Height="115.672" Width="525" Closed="Window_Closed_1" ResizeMode="CanMinimize"> - - + + + + + + + diff --git a/DriveKeepAlive/MainWindow.xaml.cs b/DriveKeepAlive/MainWindow.xaml.cs index 6149db8..98e1edc 100644 --- a/DriveKeepAlive/MainWindow.xaml.cs +++ b/DriveKeepAlive/MainWindow.xaml.cs @@ -28,7 +28,9 @@ public partial class MainWindow : Window public MainWindow() { InitializeComponent(); - FileStream = File.OpenWrite(Path.Combine(Config.FileDirectory, Config.FileName)); + var path = Path.Combine(Config.FileDirectory, Config.FileName); + PathLabel.Text = path; + FileStream = File.OpenWrite(path); var t = new Thread(KeepAliveCycle); t.IsBackground = true; t.Start();