public ZModemSender(XZModemDialog parent, string filename) : base(parent) { _fileName = filename; _fileSize = new FileInfo(filename).Length; _fileStream = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.ReadWrite); }
public XModemSender(XZModemDialog dlg, string filename) : base(dlg, filename) { _body = new byte[new FileInfo(filename).Length]; FileStream strm = new FileStream(filename, FileMode.Open, FileAccess.Read); strm.Read(_body, 0, _body.Length); strm.Close(); }
public ZModemSender(XZModemDialog parent, string filename) : base(parent, filename) { _filesize = (int)new FileInfo(filename).Length; _body = new byte[_filesize]; FileStream strm = new FileStream(filename, FileMode.Open, FileAccess.Read); strm.Read(_body, 0, _body.Length); strm.Close(); }
public override CommandResult InternalExecute(ICommandTarget target, params IAdaptable[] args) { ITerminalControlHost host = TerminalCommandTarget.AsOpenTerminal(target); if (host.Terminal.CurrentModalTerminalTask != null) { //TODO 関連付けられたXZModemDialogをActivateするようにしたい return CommandResult.Ignored; } else { XZModemDialog dlg = new XZModemDialog(); dlg.Owner = CommandTargetUtil.AsViewOrLastActivatedView(target).ParentForm.AsForm(); dlg.Initialize(host.Terminal); dlg.Show(); return CommandResult.Succeeded; } }
public XModemSender(XZModemDialog parent, string filePath) : base(parent) { _filePath = filePath; }
public ZModem(XZModemDialog parent, string filename) { _parent = parent; _filename = filename; _abort = false; }
protected XModem(XZModemDialog dialog) : base(dialog) { _parent = dialog; }
protected ModemBase(XZModemDialog dialog) { _dialog = dialog; }
public ZModemReceiver(XZModemDialog dlg, string filename) : base(dlg, filename) { }
public XModem(XZModemDialog parent, string fn) { _parent = parent; _fileName = fn; _sequenceNumber = 1; }
public ZModemReceiver(XZModemDialog dialog, string filename) : base(dialog) { _filename = filename; }
protected ZModem(XZModemDialog dialog) : base(dialog) { _parent = dialog; _lastReceptionTimeUtcTicks = DateTime.UtcNow.Ticks; }
public XModemReceiver(XZModemDialog dlg, string filename) : base(dlg, filename) { _outputStream = new FileStream(_fileName, FileMode.Create, FileAccess.Write); }
public XModemReceiver(XZModemDialog parent, string filePath) : base(parent) { _filePath = filePath; _lastReceptionTimeUtcTicks = _lastBlockTimeUtcTicks = DateTime.UtcNow.Ticks; }