Esempio n. 1
0
 private void ShowNotice(Notice notice)
 {
     if (notice == Notice.Empty)
     {
         if (_emptyNotice == null)
         {
             _emptyNotice = CreateNoticeBlock(notice.GetText());
         }
         LayoutRoot.Children.Add(_emptyNotice);
     }
     else if (notice == Notice.Loading)
     {
         if (_loadingNotice == null)
         {
             _loadingNotice = CreateNoticeBlock(notice.GetText());
         }
         LayoutRoot.Children.Add(_loadingNotice);
     }
     else
         throw new Exception("Unknown enum type");
 }