правка пути

main
Пилипенко Андрей Борисович 3 weeks ago
parent 31af132b31
commit f630287d35

@ -70,7 +70,6 @@
<Button x:Name="DeleteButton" Text="F8 Delete" Clicked="OnDeleteClicked" Padding="12,6" MinimumWidthRequest="80" Margin="0,0,8,8" />
<Button x:Name="HomeButton" Text="Home" Clicked="OnHomeClicked" Padding="12,6" MinimumWidthRequest="80" Margin="0,0,8,8" />
<Button x:Name="ExitButton" Text="F10 Exit" Clicked="OnExitClicked" Padding="12,6" MinimumWidthRequest="80" Margin="0,0,0,8" />
</FlexLayout>
</Grid>
</ContentPage>

@ -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));
}
}
Loading…
Cancel
Save