Inheritance: System.Windows.Forms.Form
Example #1
0
 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);
 }
Example #2
0
        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();
        }
Example #3
0
        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();
        }
Example #4
0
 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;
     }
 }
Example #5
0
 public XModemSender(XZModemDialog parent, string filePath)
     : base(parent)
 {
     _filePath = filePath;
 }
Example #6
0
 public ZModem(XZModemDialog parent, string filename)
 {
     _parent   = parent;
     _filename = filename;
     _abort    = false;
 }
Example #7
0
 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();
 }
Example #8
0
 protected XModem(XZModemDialog dialog)
     : base(dialog)
 {
     _parent = dialog;
 }
Example #9
0
 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();
 }
Example #10
0
 protected ModemBase(XZModemDialog dialog)
 {
     _dialog = dialog;
 }
Example #11
0
 public ZModemReceiver(XZModemDialog dlg, string filename)
     : base(dlg, filename)
 {
 }
Example #12
0
 public XModem(XZModemDialog parent, string fn)
 {
     _parent         = parent;
     _fileName       = fn;
     _sequenceNumber = 1;
 }
Example #13
0
 public XModemSender(XZModemDialog parent, string filePath)
     : base(parent)
 {
     _filePath = filePath;
 }
Example #14
0
 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);
 }
Example #15
0
 public ZModemReceiver(XZModemDialog dialog, string filename)
     : base(dialog)
 {
     _filename = filename;
 }
Example #16
0
 protected ZModem(XZModemDialog dialog)
     : base(dialog)
 {
     _parent = dialog;
     _lastReceptionTimeUtcTicks = DateTime.UtcNow.Ticks;
 }
Example #17
0
 protected ModemBase(XZModemDialog dialog)
 {
     _dialog = dialog;
 }
Example #18
0
 public XModemReceiver(XZModemDialog dlg, string filename)
     : base(dlg, filename)
 {
     _outputStream = new FileStream(_fileName, FileMode.Create, FileAccess.Write);
 }
Example #19
0
 public ZModemReceiver(XZModemDialog dialog, string filename)
     : base(dialog)
 {
     _filename = filename;
 }
Example #20
0
 public ZModem(XZModemDialog parent, string filename) {
     _parent = parent;
     _filename = filename;
     _abort = false;
 }
Example #21
0
 protected ZModem(XZModemDialog dialog)
     : base(dialog)
 {
     _parent = dialog;
     _lastReceptionTimeUtcTicks = DateTime.UtcNow.Ticks;
 }
Example #22
0
 public ZModemReceiver(XZModemDialog dlg, string filename)
     : base(dlg, filename) {
 }
Example #23
0
 public XModemReceiver(XZModemDialog parent, string filePath)
     : base(parent)
 {
     _filePath = filePath;
     _lastReceptionTimeUtcTicks = _lastBlockTimeUtcTicks = DateTime.UtcNow.Ticks;
 }
Example #24
0
 public XModemReceiver(XZModemDialog dlg, string filename)
     : base(dlg, filename) {
     _outputStream = new FileStream(_fileName, FileMode.Create, FileAccess.Write);
 }
Example #25
0
 protected XModem(XZModemDialog dialog)
     : base(dialog)
 {
     _parent = dialog;
 }
Example #26
0
 public XModem(XZModemDialog parent, string fn) {
     _parent = parent;
     _fileName = fn;
     _sequenceNumber = 1;
 }
Example #27
0
 public XModemReceiver(XZModemDialog parent, string filePath)
     : base(parent)
 {
     _filePath = filePath;
     _lastReceptionTimeUtcTicks = _lastBlockTimeUtcTicks = DateTime.UtcNow.Ticks;
 }