Another code fix for the tutorial (#314)
* update private members * Another fix
This commit is contained in:
Родитель
5c2bbdf946
Коммит
029fc1bef4
Двоичные данные
7.0/Tutorials/ConvertToMvvm/step4_viewmodel_note.zip
Двоичные данные
7.0/Tutorials/ConvertToMvvm/step4_viewmodel_note.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"))
|
||||
{
|
||||
|
|
Двоичные данные
7.0/Tutorials/ConvertToMvvm/step5_viewmodel_notes.zip
Двоичные данные
7.0/Tutorials/ConvertToMvvm/step5_viewmodel_notes.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,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
Двоичные данные
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>
|
||||
}
|
Загрузка…
Ссылка в новой задаче