|
|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
|
using CommanderApp.Services;
|
|
|
|
|
using Microsoft.Maui.Controls;
|
|
|
|
|
|
|
|
|
|
namespace CommanderApp;
|
|
|
|
|
|
|
|
|
|
@ -31,7 +30,7 @@ public partial class MainPage : ContentPage, INotifyPropertyChanged
|
|
|
|
|
if (_panelManager.LeftPanelPath != value)
|
|
|
|
|
{
|
|
|
|
|
_panelManager.UpdatePanelPaths(value, _panelManager.RightPanelPath);
|
|
|
|
|
OnPropertyChanged();
|
|
|
|
|
NotifyPropertyChanged();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -44,7 +43,7 @@ public partial class MainPage : ContentPage, INotifyPropertyChanged
|
|
|
|
|
if (_panelManager.RightPanelPath != value)
|
|
|
|
|
{
|
|
|
|
|
_panelManager.UpdatePanelPaths(_panelManager.LeftPanelPath, value);
|
|
|
|
|
OnPropertyChanged();
|
|
|
|
|
NotifyPropertyChanged();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -580,11 +579,10 @@ public partial class MainPage : ContentPage, INotifyPropertyChanged
|
|
|
|
|
private void OnExitClicked(object sender, EventArgs e) => Application.Current?.Quit();
|
|
|
|
|
|
|
|
|
|
// INotifyPropertyChanged
|
|
|
|
|
public event PropertyChangedEventHandler? PropertyChanged;
|
|
|
|
|
protected void SetProperty<T>(ref T field, T value, [CallerMemberName] string? propertyName = null)
|
|
|
|
|
public new event PropertyChangedEventHandler? PropertyChanged;
|
|
|
|
|
|
|
|
|
|
protected virtual void NotifyPropertyChanged([CallerMemberName] string? propertyName = null)
|
|
|
|
|
{
|
|
|
|
|
if (EqualityComparer<T>.Default.Equals(field, value)) return;
|
|
|
|
|
field = value;
|
|
|
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
|
|
|
|
}
|
|
|
|
|
}
|