示例#1
0
 public void RefreshImportFolders()
 {
     ImportFolders.Clear();
     try
     {
         RepoFactory.ImportFolder.GetAll().ForEach(a => ImportFolders.Add(a));
     }
     catch (Exception ex)
     {
         Utils.ShowErrorMessage(ex);
     }
 }
示例#2
0
        public void RefreshImportFolders()
        {
            ImportFolders.Clear();

            if (!ServerOnline)
            {
                return;
            }
            try
            {
                List <JMMServerBinary.Contract_ImportFolder> importFolders = Instance.clientBinaryHTTP.GetImportFolders();

                foreach (JMMServerBinary.Contract_ImportFolder ifolder in importFolders)
                {
                    ImportFolderVM grpNew = new ImportFolderVM(ifolder);
                    ImportFolders.Add(grpNew);
                }
            }
            catch (Exception ex)
            {
                BaseConfig.MyAnimeLog.Write("RefreshImportFolders: " + ex.ToString());
            }
        }