Пример #1
0
 void Pmclient_GetSystemTypeListByUserIDCompleted(object sender, GetSystemTypeListByUserIDCompletedEventArgs e)
 {
     hideLoading();
     try
     {
         AllsystemTypes = e.Result.ToList();
         ViewModel.Context.CacheSystemType = AllsystemTypes;
         if (!Application.Current.Resources.Contains("AllsystemTypes"))
         {
             Application.Current.Resources.Add("AllsystemTypes", AllsystemTypes);
         }
         //IosManager.SetValue("AllsystemTypes", AllsystemTypes);
         GetMenusAndShow();
     }catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
Пример #2
0
        void Pmclient_GetSystemTypeListByUserIDCompleted(object sender, GetSystemTypeListByUserIDCompletedEventArgs e)
        {
            hideLoading();
            try
            {
                AllsystemTypes = e.Result.ToList();
                ViewModel.Context.CacheSystemType = AllsystemTypes;
                if (!Application.Current.Resources.Contains("AllsystemTypes"))
                {
                    Application.Current.Resources.Add("AllsystemTypes", AllsystemTypes);
                }
                //IosManager.SetValue("AllsystemTypes", AllsystemTypes);
                GetMenusAndShow();

            }catch(Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }