Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
同时通知IsBookmarked属性更改
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiichiamane committed May 25, 2019
1 parent 76f5e45 commit 058d906
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PixivFSUWP/SearchResultPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ private async void QuickStar_Click(object sender, RoutedEventArgs e)
i.IsBookmarked = false;
i.Stars--;
i.NotifyChange("StarsString");
i.NotifyChange("IsBookmarked");
await (((((Frame.Parent as Grid).Parent as Page).Parent as Frame).Parent as Grid)?.Parent as MainPage)?.
ShowTip(string.Format("作品「{0}」已删除收藏", title));
}
Expand Down Expand Up @@ -150,6 +151,7 @@ private async void QuickStar_Click(object sender, RoutedEventArgs e)
i.IsBookmarked = true;
i.Stars++;
i.NotifyChange("StarsString");
i.NotifyChange("IsBookmarked");
await (((((Frame.Parent as Grid).Parent as Page).Parent as Frame).Parent as Grid)?.Parent as MainPage)?.
ShowTip(string.Format("作品「{0}」已收藏", title));
}
Expand Down
2 changes: 2 additions & 0 deletions PixivFSUWP/UserDetailPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ private async void QuickStar_Click(object sender, RoutedEventArgs e)
i.IsBookmarked = false;
i.Stars--;
i.NotifyChange("StarsString");
i.NotifyChange("IsBookmarked");
await ((Frame.Parent as Grid)?.Parent as MainPage)?.
ShowTip(string.Format("作品「{0}」已删除收藏", title));
}
Expand Down Expand Up @@ -287,6 +288,7 @@ private async void QuickStar_Click(object sender, RoutedEventArgs e)
i.IsBookmarked = true;
i.Stars++;
i.NotifyChange("StarsString");
i.NotifyChange("IsBookmarked");
await ((Frame.Parent as Grid)?.Parent as MainPage)?.
ShowTip(string.Format("作品「{0}」已收藏", title));
}
Expand Down
2 changes: 2 additions & 0 deletions PixivFSUWP/WaterfallPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ private async void QuickStar_Click(object sender, RoutedEventArgs e)
i.IsBookmarked = false;
i.Stars--;
i.NotifyChange("StarsString");
i.NotifyChange("IsBookmarked");
await ((Frame.Parent as Grid)?.Parent as MainPage)?.
ShowTip(string.Format("作品「{0}」已删除收藏", title));
}
Expand Down Expand Up @@ -176,6 +177,7 @@ private async void QuickStar_Click(object sender, RoutedEventArgs e)
i.IsBookmarked = true;
i.Stars++;
i.NotifyChange("StarsString");
i.NotifyChange("IsBookmarked");
await ((Frame.Parent as Grid)?.Parent as MainPage)?.
ShowTip(string.Format("作品「{0}」已收藏", title));
}
Expand Down

0 comments on commit 058d906

Please sign in to comment.