コード例 #1
0
        /*
         * public static async void InitManna()
         * {
         *  var isGetMannaCompleted = await MannaDataManager.GetManna(DateTime.Now);
         *  if (!isGetMannaCompleted)
         *  {
         *      await Application.Current.MainPage.DisplayAlert("만나 불러오기 실패", "새로고침 해주세요", "확인");
         *  }
         * }
         */

        public static async void InitMccheyneData()
        {
            try
            {
                GetJsonService.InitMcchyneData();
            }
            catch (Exception e)
            {
                Debug.Fail("InitMcchyneData\n" + e.Message);
                await Application.Current.MainPage.DisplayAlert("맥체인 불러오기 오류", "", "확인");
            }
        }
コード例 #2
0
 private static void CreateData()
 {
     mccheyneRanges = new List <MccheyneRange>();
     try
     {
         mccheyneRanges = GetJsonService.GetMccheyneRangesFromJson();
     }
     catch (Exception e)
     {
         System.Diagnostics.Debug.Fail("# App GetJsonMccheyneRange() \n" + e.Message);
     }
 }