public GxiContext(GxiProfile p, PwDatabase pd, PwGroup pg, PwEntry pe) { m_pd = pd; m_pg = pg; m_pe = pe; m_dStringKeyRepl = GxiImporter.ParseRepl(p.StringKeyRepl); m_dStringValueRepl = GxiImporter.ParseRepl(p.StringValueRepl); m_dStringKeyRepl2 = GxiImporter.ParseRepl(p.StringKeyRepl2); m_dStringValueRepl2 = GxiImporter.ParseRepl(p.StringValueRepl2); m_dBinaryKeyRepl = GxiImporter.ParseRepl(p.BinaryKeyRepl); }
/// <summary> /// Import a stream into a database. Throws an exception if an error /// occurs. Do not call the base class method when overriding it. /// </summary> /// <param name="pwStorage">Data storage into which the data will be imported.</param> /// <param name="sInput">Input stream to read the data from.</param> /// <param name="slLogger">Status logger. May be <c>null</c>.</param> public virtual void Import(PwDatabase pwStorage, Stream sInput, IStatusLogger slLogger) { GxiProfile p = this.XmlProfile; if (p != null) { if (pwStorage == null) { throw new ArgumentNullException("pwStorage"); } GxiImporter.Import(pwStorage.RootGroup, sInput, p, pwStorage, slLogger); return; } throw new NotSupportedException(); }