public static bool ResolveByInventory(PodsobRecord book) { MarcRecord record = Irbis.SearchReadOneRecord("\"IN={0}\"", book.Inventory); if (ReferenceEquals(record, null)) { return(false); } book.Record = record; book.Description = Irbis.FormatRecord("@sbrief", record.Mfn); return(true); }
/// <summary> /// The main entry point for the application. /// </summary> //[STAThread] static void Main() { using (var game = new Irbis()) { try { game.Run(); } catch (Exception e) { Irbis.WriteLine("Exception: " + e.Message); Irbis.WriteLine("Data: " + e.Data); Irbis.WriteLine("StackTrace:\n" + e.StackTrace); Console.WriteLine("Exception: " + e.Message); } finally { if (Irbis.Crash) { Irbis.ExportConsole(); } } } }
public static void Disconnect() { Irbis.Dispose(); Db.Dispose(); }