public async Task SaveTopicList(List<SaclopediaNavigationTopicEntity> list)
 {
     var ds = new SaclopediaDataSource();
     foreach (var item in list)
     {
         await ds.SaclopediaNavigationTopicRepository.CreateWithChildren(item);
     }
 }
Exemple #2
0
        public async Task SaveTopicList(List <SaclopediaNavigationTopicEntity> list)
        {
            var ds = new SaclopediaDataSource();

            foreach (var item in list)
            {
                await ds.SaclopediaNavigationTopicRepository.CreateWithChildren(item);
            }
        }
 public async Task SaveNavigationList(List<SaclopediaNavigationEntity> list)
 {
     var ds = new SaclopediaDataSource();
     await ds.SaclopediaNavigationRepository.RemoveAll();
     foreach (var item in list)
     {
         await ds.SaclopediaNavigationRepository.Create(item);
     }
 }
Exemple #4
0
        public async Task SaveNavigationList(List <SaclopediaNavigationEntity> list)
        {
            var ds = new SaclopediaDataSource();
            await ds.SaclopediaNavigationRepository.RemoveAll();

            foreach (var item in list)
            {
                await ds.SaclopediaNavigationRepository.Create(item);
            }
        }
        /// <summary>
        /// 単一アプリケーション オブジェクトを初期化します。これは、実行される作成したコードの
        ///最初の行であるため、main() または WinMain() と論理的に等価です。
        /// </summary>
        public App()
        {
            Microsoft.ApplicationInsights.WindowsAppInitializer.InitializeAsync();
            this.InitializeComponent();
            this.Suspending += OnSuspending;
            if (_localSettings.Values.ContainsKey(Constants.ThemeDefault))
            {
                var themeType = (ThemeTypes)_localSettings.Values[Constants.ThemeDefault];
                switch (themeType)
                {
                    case ThemeTypes.Light:
                        RequestedTheme = ApplicationTheme.Light;
                        break;
                    case ThemeTypes.Dark:
                        RequestedTheme = ApplicationTheme.Dark;
                        break;
                    case ThemeTypes.YOSPOS:
                        RequestedTheme = ApplicationTheme.Dark;
                        break;
                }
            }
            SelectedTheme = RequestedTheme;
            try
            {
                DataSource ds = new DataSource();
                SaclopediaDataSource sds = new SaclopediaDataSource();
                BookmarkDataSource bds = new BookmarkDataSource();
                ds.InitDatabase();
                ds.CreateDatabase();
                bds.InitDatabase();
                bds.CreateDatabase();
                sds.InitDatabase();
                sds.CreateDatabase();
            }
            catch
            {

            }
            Container = AutoFacConfiguration.Configure();
        }
Exemple #6
0
        public async Task <List <SaclopediaNavigationTopicEntity> > GetTopicList(SaclopediaNavigationEntity entity)
        {
            var ds = new SaclopediaDataSource();

            return(await ds.SaclopediaNavigationTopicRepository.Items.Where(node => node.ParentNavId == entity.Id).ToListAsync());
        }
Exemple #7
0
        public async Task <List <SaclopediaNavigationEntity> > GetNavigationList()
        {
            var ds = new SaclopediaDataSource();

            return(await ds.SaclopediaNavigationRepository.GetAllWithChildren());
        }
 public async Task<List<SaclopediaNavigationTopicEntity>> GetTopicList(SaclopediaNavigationEntity entity)
 {
     var ds = new SaclopediaDataSource();
     return await ds.SaclopediaNavigationTopicRepository.Items.Where(node => node.ParentNavId == entity.Id).ToListAsync();
 }
 public async Task<List<SaclopediaNavigationEntity>> GetNavigationList()
 {
     var ds = new SaclopediaDataSource();
     return await ds.SaclopediaNavigationRepository.GetAllWithChildren();
 }