public override void Import(PwDatabase pwStorage, Stream sInput, IStatusLogger slLogger) { MemoryStream ms = new MemoryStream(); MemUtil.CopyStream(sInput, ms); byte[] pbData = ms.ToArray(); ms.Close(); sInput.Close(); CsvImportForm dlg = new CsvImportForm(); dlg.InitEx(pwStorage, pbData); UIUtil.ShowDialogAndDestroy(dlg); }
public override void Import(PwDatabase pwStorage, Stream sInput, IStatusLogger slLogger) { BinaryReader br = new BinaryReader(sInput); byte[] pbData = br.ReadBytes((int)sInput.Length); br.Close(); CsvImportForm dlg = new CsvImportForm(); dlg.InitEx(pwStorage, pbData); UIUtil.ShowDialogAndDestroy(dlg); }