Exemplo n.º 1
0
 public static void Writer(DbDebugItem <int> debug, AbstractDb <int> db)
 {
     if (debug.FileType == FileType.Conf)
     {
         DbIOMethods.DbIOWriter(debug, db, WriteEntry);
     }
     else if (debug.FileType == FileType.Yaml)
     {
         DbIOMethods.DbIOWriter(debug, db, WriteEntryYaml);
     }
 }
Exemplo n.º 2
0
        public static void Writer(DbDebugItem <int> debug, AbstractDb <int> db)
        {
            try {
                var itemDb = SdeEditor.Instance.ProjectDatabase.GetMetaTable <int>(ServerDbs.Items);

                if (debug.FileType == FileType.Yaml)
                {
                    DbIOMethods.DbIOWriter(debug, db, (r, q) => WriteEntryYaml(r, q, itemDb));
                }
            }
            catch (Exception err) {
                ErrorHandler.HandleException(err);
            }
        }
Exemplo n.º 3
0
 public static void Writer(DbDebugItem <int> debug, AbstractDb <int> db)
 {
     if (debug.FileType == FileType.Conf)
     {
         DbIOMethods.DbIOWriter(debug, db, (q, r) => WriteEntry(db, q, r));
     }
     else if (debug.FileType == FileType.Txt)
     {
         DbIOMethods.DbWriterComma(debug, db);
     }
     else if (debug.FileType == FileType.Yaml)
     {
         var itemDb = SdeEditor.Instance.ProjectDatabase.GetMetaTable <int>(ServerDbs.Items);
         DbIOMethods.DbIOWriter(debug, db, (r, q) => WriteEntryYaml(r, q, itemDb));
     }
 }