source: 2014/tet/FileWatcher/FileWatcher/MainWindow.xaml @ 5261

Revision 4833, 4.8 KB checked in by anlakane, 7 years ago (diff)
Line 
1<Window x:Class="FileWatcher.MainWindow"
2        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4        Title="Watson" Height="460" Width="525" Closing="Window_Closing" MinHeight="460" MinWidth="525" MaxHeight="460" MaxWidth="525">
5    <Grid Background="Gray">
6        <TextBox Height="23" HorizontalAlignment="Left" Margin="160,12,0,0" Name="directory" VerticalAlignment="Top" Width="250" TextChanged="directory_TextChanged" Text="C:\MyParentFolder\MyFolder" GotFocus="directory_GotFocus" LostFocus="directory_LostFocus" Foreground="Silver" Background="White" KeyDown="directory_KeyDown" />
7        <Button Height="23" HorizontalAlignment="Left" Margin="416,12,0,0" Name="directorySelection" VerticalAlignment="Top" Width="75" Click="directorySelection_Click" Content="Browse..." />
8        <Label Content="Watched directory:" Height="28" HorizontalAlignment="Left" Margin="12,12,0,0" Name="directoryLabel" VerticalAlignment="Top" />
9        <Label Content="File extensions:" Height="28" HorizontalAlignment="Left" Margin="12,62,0,0" Name="extensionsLabel" VerticalAlignment="Top" />
10        <TextBox Height="23" HorizontalAlignment="Left" Margin="160,67,0,0" Name="extensions" VerticalAlignment="Top" Width="250" KeyDown="extensions_KeyDown" Text=".mp3, .avi, .txt, .*" LostFocus="extensions_LostFocus" GotFocus="extensions_GotFocus" Foreground="Silver" />
11        <Label Content="Program(s) to execute:" Height="28" HorizontalAlignment="Left" Margin="12,159,0,0" Name="programLabel" VerticalAlignment="Top" />
12        <Button Content="Add..." Height="23" HorizontalAlignment="Left" Margin="160,160,0,0" Name="executeAdd" VerticalAlignment="Top" Width="75" Click="executeAdd_Click" />
13        <ScrollViewer Height="100" HorizontalAlignment="Left" Margin="93,266,0,0" Name="messageWindow" VerticalAlignment="Top" Width="398" Background="Silver" BorderBrush="Gray" BorderThickness="1" AllowDrop="False"></ScrollViewer>
14        <Button Content="Remove" Height="23" HorizontalAlignment="Left" Margin="160,189,0,0" Name="executeRemove" VerticalAlignment="Top" Width="75" Click="executeRemove_Click" />
15        <Button Content="Edit" Height="23" HorizontalAlignment="Left" Margin="160,218,0,0" Name="executeEdit" VerticalAlignment="Top" Width="75" Click="executeEdit_Click" />
16        <ListBox Height="100" HorizontalAlignment="Left" Margin="241,160,0,0" Name="programList" VerticalAlignment="Top" Width="250" Background="Silver" DataContext="{Binding}" />
17        <Button Content="Stop" Height="23" HorizontalAlignment="Left" Margin="335,382,0,0" Name="stopButton" VerticalAlignment="Top" Width="75" Click="stopButton_Click" IsEnabled="False" />
18        <Label Content="Watched events:" Height="28" HorizontalAlignment="Left" Margin="12,96,0,0" Name="eventLabel" VerticalAlignment="Top" />
19        <CheckBox Content="File creation" Height="16" HorizontalAlignment="Left" Margin="160,108,0,0" Name="creationBox" VerticalAlignment="Top" IsChecked="True" ToolTip="Creating a new file and copying or moving a file to a watched directory" />
20        <CheckBox Content="File deletion" Height="16" HorizontalAlignment="Left" Margin="160,130,0,0" Name="deletionBox" VerticalAlignment="Top" ToolTip="Deleting a file and moving a file away from a watched directory" />
21        <CheckBox Content="Changes in files" Height="16" HorizontalAlignment="Left" Margin="316,108,0,0" Name="changeBox" VerticalAlignment="Top" ToolTip="Changing file size, system attributes, last write or access time and security permissions" />
22        <CheckBox Content="Renaming files" Height="16" HorizontalAlignment="Left" Margin="316,130,0,0" Name="renameBox" VerticalAlignment="Top" ToolTip="Renaming a file" />
23        <Button Content="Options..." Height="23" HorizontalAlignment="Right" Margin="0,382,335,0" Name="optionsButton" VerticalAlignment="Top" Width="75" Click="optionsButton_Click" />
24        <Button Content="Load" Height="23" HorizontalAlignment="Left" Margin="12,266,0,0" Name="loadSettings" VerticalAlignment="Top" Width="75" Click="loadSettings_Click" />
25        <Button Content="Save" Height="23" HorizontalAlignment="Left" Margin="12,0,0,103" Name="saveSettings" VerticalAlignment="Bottom" Width="75" Click="saveSettings_Click" />
26        <Button Content="Start" Height="23" Name="startButton" Width="75" Click="startButton_Click" Margin="416,382,12,15" FontStyle="Normal" FontWeight="Bold" />
27        <Button Content="Clear" Height="23" HorizontalAlignment="Left" Margin="12,324,0,0" Name="clearButton" VerticalAlignment="Top" Width="75" Click="clearButton_Click" />
28        <CheckBox Content="Watch subdirectories" Height="16" HorizontalAlignment="Left" Margin="160,41,0,0" Name="subdirectoryCheckbox" VerticalAlignment="Top" IsChecked="True" Checked="subdirectoryCheckbox_Checked" Unchecked="subdirectoryCheckbox_Unchecked" />
29    </Grid>
30</Window>
Note: See TracBrowser for help on using the repository browser.