Another code fix for the tutorial (#314)

* update private members

* Another fix
This commit is contained in:
Andy (Steve) De George 2023-01-05 15:55:01 -08:00 коммит произвёл GitHub
Родитель 5c2bbdf946
Коммит 029fc1bef4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
8 изменённых файлов: 5 добавлений и 7 удалений

Двоичный файл не отображается.

Просмотреть файл

@ -59,7 +59,7 @@ internal class NoteViewModel : ObservableObject, IQueryAttributable
await Shell.Current.GoToAsync($"..?deleted={_note.Filename}");
}
public void ApplyQueryAttributes(IDictionary<string, object> query)
void IQueryAttributable.ApplyQueryAttributes(IDictionary<string, object> query)
{
if (query.ContainsKey("load"))
{

Двоичный файл не отображается.

Просмотреть файл

@ -59,7 +59,7 @@ internal class NoteViewModel : ObservableObject, IQueryAttributable
await Shell.Current.GoToAsync($"..?deleted={_note.Filename}");
}
public void ApplyQueryAttributes(IDictionary<string, object> query)
void IQueryAttributable.ApplyQueryAttributes(IDictionary<string, object> query)
{
if (query.ContainsKey("load"))
{

Просмотреть файл

@ -28,7 +28,7 @@ internal class NotesViewModel : IQueryAttributable
await Shell.Current.GoToAsync($"{nameof(Views.NotePage)}?load={note.Identifier}");
}
public void ApplyQueryAttributes(IDictionary<string, object> query)
void IQueryAttributable.ApplyQueryAttributes(IDictionary<string, object> query)
{
if (query.ContainsKey("deleted"))
{

Двоичные данные
7.0/Tutorials/ConvertToMvvm/step6_bugs.zip

Двоичный файл не отображается.

Просмотреть файл

@ -59,7 +59,7 @@ internal class NoteViewModel : ObservableObject, IQueryAttributable
await Shell.Current.GoToAsync($"..?deleted={_note.Filename}");
}
public void ApplyQueryAttributes(IDictionary<string, object> query)
void IQueryAttributable.ApplyQueryAttributes(IDictionary<string, object> query)
{
if (query.ContainsKey("load"))
{

Просмотреть файл

@ -28,8 +28,7 @@ internal class NotesViewModel : IQueryAttributable
await Shell.Current.GoToAsync($"{nameof(Views.NotePage)}?load={note.Identifier}");
}
//<query>
public void ApplyQueryAttributes(IDictionary<string, object> query)
void IQueryAttributable.ApplyQueryAttributes(IDictionary<string, object> query)
{
if (query.ContainsKey("deleted"))
{
@ -56,5 +55,4 @@ internal class NotesViewModel : IQueryAttributable
AllNotes.Insert(0, new NoteViewModel(Models.Note.Load(noteId)));
}
}
//</query>
}