public StorageService() { if (m_DBService == null) { Mef.Initialize(this); } }
public StorageService() { if (m_DBService == null) { Mef.Initialize(this, new List <Type> { typeof(StorageRepo), typeof(MessageboxService) }); } }
public MainService() { if (m_DBService == null) { Mef.Initialize(this, new List <Type> { GetType(), typeof(StorageRepo) }); } }
public ReferenceService() { if (m_DBService == null) { Mef.Initialize(this, new List <Type> { GetType(), typeof(HistoryRepo) }); } LastHistory = m_HistoryRepo.GetLastOpened(); // Our currently open file in Sumatra }
public FormVolume() { InitializeComponent(); if (m_DBService == null) { Mef.Initialize(this, new List <Type> { GetType(), typeof(ModelsForViewing) }); } }
/// <summary> /// Coming in here means add a new citation. We are called from Sumatra. /// </summary> /// <param name="message"></param> public BelGui(EventData message) : this() { if (DBService == null) { Mef.Initialize(this); } List <RawCitation> rawCitations = DBService.Select <RawCitation>(); DBService.ClearTable <RawCitation>(); // Get volume and storage History history = HistoryRepo.GetLastOpened(); // Our currently open file in Sumatra VM.CurrentVolume = DBService.SelectById <Volume>(history.VolumeId); VM.CurrentStorage = DBService.SelectById <Storage>(history.StorageId); // Create new citation VM.CurrentCitation = CitationRepo.CreateNewCitation(rawCitations, message); CitationService.CitationChanged += CitationService_CitationChanged; LoadControls(); }
public CitationRepo() { Mef.Initialize(this); }