示例#1
0
 private void ViewModel_NewsUpdated(object sender, NewsUpdatedEventArgs e)
 {
     if (e.Message == "ok")
     {
         VisualStateManager.GoToState(this, "CompletedState", true);
     }
     else
     {
         VisualStateManager.GoToState(this, "ErrorState", true);
     }
 }
示例#2
0
 protected virtual void OnNewsUpdated(NewsUpdatedEventArgs e)
 {
     if (NewsUpdated != null)
         NewsUpdated(this, e);
 }