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); } }
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); } }
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)); } }