Refactor GQL code. Auto load and save active shops. Auto start monitors.
This commit is contained in:
@@ -29,6 +29,11 @@
|
||||
<util:OpenMainWindowCommand x:Key="OpenMainWindowCommand" />
|
||||
</Window.Resources>
|
||||
<DockPanel>
|
||||
<ProgressBar DockPanel.Dock="Bottom"
|
||||
Value="{Binding Progress}"
|
||||
IsIndeterminate="{Binding IndeterminateLoading}"
|
||||
Height="10" />
|
||||
|
||||
<tb:TaskbarIcon DockPanel.Dock="Top"
|
||||
IconSource="../favicon.ico"
|
||||
DoubleClickCommand="{StaticResource OpenMainWindowCommand}"
|
||||
@@ -48,8 +53,7 @@
|
||||
</tb:TaskbarIcon.TrayPopup>
|
||||
<tb:TaskbarIcon.ContextMenu>
|
||||
<ContextMenu>
|
||||
<MenuItem Header="First Menu Item" />
|
||||
<MenuItem Header="Second Menu Item" />
|
||||
<MenuItem Header="Exit" Command="{Binding QuitCommand}" />
|
||||
</ContextMenu>
|
||||
</tb:TaskbarIcon.ContextMenu>
|
||||
</tb:TaskbarIcon>
|
||||
@@ -76,17 +80,16 @@
|
||||
</ItemsPanelTemplate>
|
||||
</ComboBox.ItemsPanel>
|
||||
</ComboBox>
|
||||
|
||||
|
||||
<Button Command="{Binding StartFolderMonitorsCommand}"
|
||||
Content="{x:Static p:Resources.Label_StartAllMonitors}" />
|
||||
<Button Command="{Binding StopFolderMonitorsCommand}"
|
||||
Content="{x:Static p:Resources.Label_StopAllMonitors}" />
|
||||
<CheckBox IsChecked="{Binding Source={x:Static p:Settings.Default}, Path=AutoStartMonitor}"
|
||||
Content="{x:Static p:Resources.Label_AutoStartMonitor}"/>
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<ProgressBar DockPanel.Dock="Bottom"
|
||||
Value="{Binding Progress}" />
|
||||
|
||||
<DataGrid ItemsSource="{Binding MonitoringPaths}"
|
||||
AutoGenerateColumns="False"
|
||||
CanUserAddRows="False">
|
||||
|
||||
Reference in New Issue
Block a user