Implemented Queues and folder monitors.
This commit is contained in:
@@ -20,15 +20,17 @@
|
||||
Background="{DynamicResource MaterialDesignPaper}"
|
||||
FontFamily="{DynamicResource MaterialDesignFont}"
|
||||
Loaded="Window_Loaded"
|
||||
xmlns:util="clr-namespace:BodyshopUploader.Utils">
|
||||
xmlns:util="clr-namespace:BodyshopUploader.Utils"
|
||||
Closing="Window_Closing">
|
||||
<Window.DataContext>
|
||||
<vm:MainViewModel />
|
||||
</Window.DataContext>
|
||||
<Window.Resources>
|
||||
<util:OpenMainWindowCommand x:Key="OpenMainWindowCommand"/>
|
||||
<util:OpenMainWindowCommand x:Key="OpenMainWindowCommand" />
|
||||
</Window.Resources>
|
||||
<StackPanel>
|
||||
<tb:TaskbarIcon IconSource="../favicon.ico"
|
||||
<DockPanel>
|
||||
<tb:TaskbarIcon DockPanel.Dock="Top"
|
||||
IconSource="../favicon.ico"
|
||||
DoubleClickCommand="{StaticResource OpenMainWindowCommand}"
|
||||
PopupActivation="LeftClick"
|
||||
MenuActivation="RightClick"
|
||||
@@ -45,13 +47,15 @@
|
||||
</Border>
|
||||
</tb:TaskbarIcon.TrayPopup>
|
||||
<tb:TaskbarIcon.ContextMenu>
|
||||
<ContextMenu Background="LightCoral">
|
||||
<ContextMenu>
|
||||
<MenuItem Header="First Menu Item" />
|
||||
<MenuItem Header="Second Menu Item" />
|
||||
</ContextMenu>
|
||||
</tb:TaskbarIcon.ContextMenu>
|
||||
</tb:TaskbarIcon>
|
||||
<Button Command="{Binding TestCommand}"
|
||||
|
||||
<Button DockPanel.Dock="Top"
|
||||
Command="{Binding TestCommand}"
|
||||
Content="Test Command" />
|
||||
|
||||
<Button Style="{StaticResource MaterialDesignFloatingActionMiniDarkButton}"
|
||||
@@ -60,8 +64,15 @@
|
||||
<materialDesign:PackIcon Kind="Add"
|
||||
Height="24"
|
||||
Width="24" />
|
||||
</Button>
|
||||
|
||||
</Button>
|
||||
<StackPanel DockPanel.Dock="Right">
|
||||
<Button Command="{Binding StartFolderMonitorsCommand}"
|
||||
Content="{x:Static p:Resources.Label_StartAllMonitors}"/>
|
||||
<Button Command="{Binding StopFolderMonitorsCommand}"
|
||||
Content="{x:Static p:Resources.Label_StopAllMonitors}" />
|
||||
|
||||
</StackPanel>
|
||||
<ItemsControl ItemsSource="{Binding MonitoringPaths}">
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
@@ -72,12 +83,11 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Grid.Column="0"
|
||||
Text="{Binding .}" />
|
||||
|
||||
|
||||
<materialDesign:PackIcon Kind="RemoveCircle"
|
||||
Grid.Column="1"
|
||||
Height="16"
|
||||
Width="16" >
|
||||
|
||||
<materialDesign:PackIcon Kind="RemoveCircle"
|
||||
Grid.Column="1"
|
||||
Height="16"
|
||||
Width="16">
|
||||
<materialDesign:PackIcon.InputBindings>
|
||||
<MouseBinding Gesture="LeftClick"
|
||||
Command="{Binding DataContext.RemoveMonitoringPathCommand,
|
||||
@@ -91,5 +101,5 @@
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
</StackPanel>
|
||||
</DockPanel>
|
||||
</Window>
|
||||
|
||||
Reference in New Issue
Block a user