Esempio n. 1
0
        public String GetSection(String sectionName)
        {
            Type sectionType = Type.GetType(String.Format("OpenIZ.Mobile.Core.Configuration.{0}, OpenIZ.Mobile.Core, Version=0.1.0.0", sectionName));

            if (sectionType == null)
            {
                return(null);
            }
            else
            {
                return(JniUtil.ToJson(ApplicationContext.Current.Configuration.GetSection(sectionType)));
            }
        }
Esempio n. 2
0
 public String GetLogFiles()
 {
     try
     {
         String        logFileBase = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "log");
         List <String> files       = new List <string>();
         foreach (var f in Directory.GetFiles(logFileBase))
         {
             files.Add(Path.GetFileName(f));
         }
         return(JniUtil.ToJson(files));
     }
     catch (Exception ex)
     {
         this.m_tracer.TraceError("Error getting log files: {0}", ex);
         return(null);
     }
 }