コード例 #1
0
        public void LoadFeatures()
        {
            DashboardLogic logic = new DashboardLogic();

            if (AppState.Instance.IsNetworkAvilable())
            {
                logic.LoadFeaturesOnline();
            }
            else
            {
                logic.LoadFeatureOffline();
            }

            if (AppState.Instance.UserLicenseList != null)
            {
                foreach (var data in AppState.Instance.UserLicenseList)
                {
                    foreach (var pro in data.Products)
                    {
                        foreach (var fet in pro.Features)
                        {
                            FeataureList.Add(fet);
                        }
                    }
                }
            }
        }