public FileTransferUI(Form parentForm, Device targetDevice, bool createMissingDirs, string sourcePath, string destPath, string transferDescription, int seq = 0) { InitializeComponent(); currentDevice = targetDevice; this.parentForm = parentForm; this.Size = this.MinimumSize; this.DoubleBuffered = true; Panel1.DoubleBuffered(true); LogTextBox.DoubleBuffered(true); remoteTransfer = new RemoteTransfer(currentDevice.HostName, sourcePath, destPath, transferDescription, this); remoteTransfer.CreateMissingDirectories = createMissingDirs; DeviceInfoLabel.Text = currentDevice.Serial + " - " + currentDevice.CurrentUser; TransferRateLabel.Text = "0.00MB/s"; SetStatus(ProgressStatus.Queued); if (seq > 0) { SequenceLabel.Text = "#" + seq; } else { SequenceLabel.Text = ""; } }
public GridForm(ExtendedForm parentForm, string title = "") : base(parentForm) { InitializeComponent(); if (!string.IsNullOrEmpty(title)) { this.Text = titlePrefix + title; } GridPanel.DoubleBuffered(true); Panel1.DoubleBuffered(true); GridPanel.RowStyles.Clear(); }