Missed in previous commits.
This commit is contained in:
@@ -7,6 +7,7 @@ using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
{
|
||||
@@ -31,7 +32,7 @@ namespace BodyshopPartner.Utils
|
||||
}
|
||||
|
||||
updateInfo.ReleasesToApply.ForEach(release => logger.Debug("Release to apply " + release.Version));
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -61,12 +62,16 @@ namespace BodyshopPartner.Utils
|
||||
var updateInfo = await updateManager.CheckForUpdate();
|
||||
var releases = updateInfo.ReleasesToApply;
|
||||
logger.Debug("Applying releases", releases.ToString());
|
||||
await updateManager.DownloadReleases(releases, _ => {
|
||||
await updateManager.DownloadReleases(releases, _ =>
|
||||
{
|
||||
logger.Debug("Download Release Progress " + _.ToString());
|
||||
DownloadProgress = _; });
|
||||
await updateManager.ApplyReleases(updateInfo, _ => {
|
||||
DownloadProgress = _;
|
||||
});
|
||||
await updateManager.ApplyReleases(updateInfo, _ =>
|
||||
{
|
||||
logger.Debug("Install Progress " + _.ToString());
|
||||
InstallProgress = _; });
|
||||
InstallProgress = _;
|
||||
});
|
||||
}
|
||||
catch (Exception Ex)
|
||||
{
|
||||
|
||||
@@ -20,8 +20,7 @@
|
||||
Background="{DynamicResource MaterialDesignPaper}"
|
||||
FontFamily="{DynamicResource MaterialDesignFont}"
|
||||
Loaded="Window_Loaded"
|
||||
Closing="Window_Closing"
|
||||
>
|
||||
Closing="Window_Closing">
|
||||
<Window.DataContext>
|
||||
<vm:MainViewModel />
|
||||
</Window.DataContext>
|
||||
@@ -133,10 +132,6 @@
|
||||
<Button Command="{Binding StartFolderMonitorsCommand, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="8"
|
||||
Content="{x:Static p:Resources.Label_StartAllMonitors}" />
|
||||
<Button Command="{Binding StopFolderMonitorsCommand, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="8"
|
||||
Content="{x:Static p:Resources.Label_StopAllMonitors}" />
|
||||
|
||||
<Button Command="{Binding StopFolderMonitorsCommand, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="8"
|
||||
Content="{x:Static p:Resources.Label_StopAllMonitors}" />
|
||||
@@ -153,9 +148,11 @@
|
||||
Margin="8"
|
||||
Content="{Binding AppVersion}" />
|
||||
<StackPanel Visibility="{Binding UpdateAvailable, Converter={StaticResource BooleanToVisibilityConverter}}">
|
||||
|
||||
<Button Content="Update" Command="{Binding InstallUpdatesCommand}" />
|
||||
<ProgressBar Margin="8" Value="{Binding UpdateProgress}"/>
|
||||
|
||||
<Button Content="Update"
|
||||
Command="{Binding InstallUpdatesCommand}" />
|
||||
<ProgressBar Margin="8"
|
||||
Value="{Binding UpdateProgress}" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
<Grid>
|
||||
@@ -177,26 +174,6 @@
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Binding="{Binding FilePath}"
|
||||
Header="{x:Static p:Resources.Label_FilePath}" />
|
||||
<!--<DataGridTextColumn Binding="{Binding Source}"
|
||||
Header="{x:Static p:Resources.Label_SourceSystem}" />
|
||||
|
||||
<DataGridTemplateColumn Header="{x:Static p:Resources.Label_SourceSystem}">
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<ComboBox Margin="8"
|
||||
SelectedItem="{Binding Source}">
|
||||
<ComboBox.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<VirtualizingStackPanel />
|
||||
</ItemsPanelTemplate>
|
||||
</ComboBox.ItemsPanel>
|
||||
<ComboBoxItem>Mitchell</ComboBoxItem>
|
||||
<ComboBoxItem>Audatex</ComboBoxItem>
|
||||
<ComboBoxItem>CCC</ComboBoxItem>
|
||||
</ComboBox>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>-->
|
||||
|
||||
<DataGridTextColumn Binding="{Binding FolderMonitor.EnableRaisingEvents, Converter={StaticResource MonitorStatusConverter}}"
|
||||
Header="{x:Static p:Resources.Label_Status}" />
|
||||
|
||||
Reference in New Issue
Block a user