private void btnbrowseDestFromNetwork_Click(object sender, EventArgs e)
 {
     var frmSelectFromNetwork = new FormNetworkPath(NodeType.Directory);
     if (frmSelectFromNetwork.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         var selectedPath = frmSelectFromNetwork.SelectedPath;
         this.txtDest.Tag = selectedPath;
         this.txtDest.Text = selectedPath.Goods;//.ToString();
     }
 }
 private void btnBrowseSourceFromNetwork_Click(object sender, EventArgs e)
 {
     var source = this.txtSource.Tag as Transporter;
     var frmSelectFromNetwork = new FormNetworkPath(
         source.Ip, source.Username, source.Password, NodeType.File);
     if (frmSelectFromNetwork.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         this.txtSource.Tag = frmSelectFromNetwork.SelectedPath;
         this.txtSource.Text = frmSelectFromNetwork.SelectedPath.Goods;//.ToString();
     }
 }
 private void btnbrowseDestFromNetwork_Click(object sender, EventArgs e)
 {
     var dest = this.txtDest.Tag as Transporter;
     var frmSelectFromNetwork = new FormNetworkPath(
         dest.Ip, dest.Username, dest.Password, NodeType.Directory);
     if (frmSelectFromNetwork.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         this.txtDest.Tag = frmSelectFromNetwork.SelectedPath;
         this.txtDest.Text = frmSelectFromNetwork.SelectedPath.Goods;//.ToString();
     }
 }
 private void btnBrowseSourceFromNetwork_Click(object sender, EventArgs e)
 {
     var frmSelectFromNetwork = new FormNetworkPath(NodeType.File);
     if (frmSelectFromNetwork.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         var selectedPath = frmSelectFromNetwork.SelectedPath;
         this.txtSource.Tag = selectedPath;
         this.txtSource.Text = selectedPath.Goods;//.ToString();
         this.txtSource.ReadOnly = false;
     }
 }