ringbuffer and statistics
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
using MaterialSkin.Controls;
|
||||
using VisionBuilder.UI.Common.RecipeProcessing;
|
||||
|
||||
namespace VisionBuilder.UI.Windows.Settings;
|
||||
|
||||
public class LoadingService: ILoadingService
|
||||
{
|
||||
public void StartLoading(string title)
|
||||
{
|
||||
MaterialLoader.Instance.StartLoading(title);
|
||||
}
|
||||
|
||||
public void StopLoading(string title)
|
||||
{
|
||||
MaterialLoader.Instance.FinishLoading(title);
|
||||
}
|
||||
}
|
||||
@@ -5,10 +5,10 @@ using VisionBuilder.UI.Common.ViewModel.Interfaces.UI;
|
||||
|
||||
namespace VisionBuilder.UI.Windows.Settings;
|
||||
|
||||
public class ImagePreviewService: IImagePreviewService
|
||||
public class WindowsImagePreviewService: IImagePreviewService
|
||||
{
|
||||
|
||||
public ImagePreviewService()
|
||||
public WindowsImagePreviewService()
|
||||
{
|
||||
|
||||
}
|
||||
28
VisionBuilder.UI.Windows/Services/WindowsLoadingService.cs
Normal file
28
VisionBuilder.UI.Windows/Services/WindowsLoadingService.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using MaterialSkin.Controls;
|
||||
using VisionBuilder.UI.Common.RecipeProcessing;
|
||||
|
||||
namespace VisionBuilder.UI.Windows.Settings;
|
||||
|
||||
public class WindowsLoadingService: ILoadingService
|
||||
{
|
||||
public void StartLoading(string title)
|
||||
{
|
||||
lock (this)
|
||||
{
|
||||
MaterialLoader.Instance.StartLoading(title);
|
||||
Application.DoEvents(); // Ensure the UI updates immediately
|
||||
Thread.Sleep(10);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void StopLoading(string title)
|
||||
{
|
||||
lock (this)
|
||||
{
|
||||
MaterialLoader.Instance.FinishLoading(title);
|
||||
Application.DoEvents(); // Ensure the UI updates immediately
|
||||
Thread.Sleep(10);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ using VisionBuilder.UI.Windows.Dialogs;
|
||||
|
||||
namespace VisionBuilder.UI.Windows.Settings;
|
||||
|
||||
public class RecipeSelectionDialogService: IRecipeSelectionDialogService
|
||||
public class WindowsRecipeSelectionDialogService: IRecipeSelectionDialogService
|
||||
{
|
||||
public bool SelectRecipe(RecipeSelectionVM recipeSelectionVm)
|
||||
{
|
||||
@@ -5,12 +5,12 @@ using VisionBuilder.UI.Common.ViewModel.Interfaces.UI;
|
||||
|
||||
namespace VisionBuilder.UI.Windows.Settings;
|
||||
|
||||
public class SettingsService: ISettingsService
|
||||
public class WindowsSettingsService: ISettingsService
|
||||
{
|
||||
private readonly UIConfiguration _uiConfiguration;
|
||||
private readonly InspectronSettings _settings;
|
||||
|
||||
public SettingsService(UIConfiguration uiConfiguration, InspectronSettings settings)
|
||||
public WindowsSettingsService(UIConfiguration uiConfiguration, InspectronSettings settings)
|
||||
{
|
||||
_uiConfiguration = uiConfiguration ?? throw new ArgumentNullException(nameof(uiConfiguration));
|
||||
_settings = settings ?? throw new ArgumentNullException(nameof(settings));
|
||||
Reference in New Issue
Block a user