forked from amkovkov/GranuSightSoftware2
feat: Camera settings + some refactor
This commit is contained in:
@@ -40,9 +40,12 @@ public partial class ResourcesViewModel : ViewModelBase, IDisposable
|
||||
|
||||
public ResourcesViewModel(ComputeResourcesService computeResourcesService, ILogger<ResourcesViewModel> logger)
|
||||
{
|
||||
_computeResourcesService = computeResourcesService;
|
||||
_logger = logger;
|
||||
|
||||
_logger.LogInformation("Initialization");
|
||||
|
||||
_computeResourcesService = computeResourcesService;
|
||||
|
||||
ResourceChartViewModel CreateChartViewModel(string name, double minLimit, double maxLimit, double minStep)
|
||||
{
|
||||
return new ResourceChartViewModel(
|
||||
@@ -130,12 +133,12 @@ public partial class ResourcesViewModel : ViewModelBase, IDisposable
|
||||
_updateTimer.Elapsed += UpdateTimerElapsed;
|
||||
_updateTimer.AutoReset = true;
|
||||
_updateTimer.Start();
|
||||
_logger.LogInformation("{} initialized", nameof(ResourcesViewModel));
|
||||
|
||||
_logger.LogInformation("Initialized");
|
||||
}
|
||||
|
||||
partial void OnBoundsChanged(Rect value)
|
||||
{
|
||||
_logger.LogInformation("BoundsChanged {}", value);
|
||||
if (value.Width < 300)
|
||||
{
|
||||
IsChartsColumnVisible = false;
|
||||
@@ -153,16 +156,6 @@ public partial class ResourcesViewModel : ViewModelBase, IDisposable
|
||||
}
|
||||
}
|
||||
|
||||
partial void OnIsChartsColumnVisibleChanged(bool value)
|
||||
{
|
||||
_logger.LogInformation("IsChartsColumnVisibleChanged {}", value);
|
||||
}
|
||||
|
||||
partial void OnIsBarsColumnVisibleChanged(bool value)
|
||||
{
|
||||
_logger.LogInformation("IsBarsColumnVisibleChanged {}", value);
|
||||
}
|
||||
|
||||
private void UpdateTimerElapsed(object? sender, System.Timers.ElapsedEventArgs ea) => Update();
|
||||
private void Update()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user