private void btnDownload_Click(object sender, EventArgs e)
 {
     string packagetime = ((DataGridViewRow)this.dgVersionHistory.SelectedRows[0]).Cells["pACKAGEDATEDataGridViewTextBoxColumn"].Value.ToString();
     PackageCollection dlls = new PackageCollection();
     dlls.Action = PackageAction.Download;
     dlls.Packages.Add(FileName);
     dlls.DateTimes.Add(packagetime);
     dlls.Solution = SolutionName;
     dlls.Type = PackageType;
     PackageTransferForm transForm = new PackageTransferForm(dlls, LocalPackagePath);
     transForm.Text = "Package Download State";
     transForm.ShowDialog();
 }
Example #2
0
 //上传
 private void dgRemotePackage_DragDrop(object sender, DragEventArgs e)
 {
     PackageCollection dlls = e.Data.GetData(typeof(PackageCollection)) as PackageCollection;
     if (dlls != null && dlls.Action == PackageAction.Upload && dlls.Packages.Count > 0)
     {
         PackageTransferForm transForm = new PackageTransferForm(dlls, LocalPackagePath);
         transForm.Text = "Package Upload State";
         transForm.ShowDialog();
         if (cbxPackageType.SelectedIndex == 1)
         {
             //try
             //{
             //    EEPSetUpLibrary.LoaderObject obj = (EEPSetUpLibrary.LoaderObject)Activator.GetObject(typeof(EEPSetUpLibrary.LoaderObject)
             //        , string.Format("http://{0}:{1}/LoaderObject.rem", CliUtils.fRemoteIP, CliUtils.fRemotePort));
             //    obj.RefreshFileList();
             //}
             //catch (Exception ex)
             //{
             //    MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
             //}
         }
         // Reload Remote Packages
         RefreshPackageDisplay(true, false);
     }
 }
Example #3
0
 //下载
 private void dgLocalPackage_DragDrop(object sender, DragEventArgs e)
 {
     PackageCollection dlls = e.Data.GetData(typeof(PackageCollection)) as PackageCollection;
     if (dlls != null && dlls.Action == PackageAction.Download && dlls.Packages.Count > 0)
     {
         PackageTransferForm transForm = new PackageTransferForm(dlls, LocalPackagePath);
         transForm.Text = "Package Download State";
         transForm.ShowDialog();
         // Reload Local Packages
         RefreshPackageDisplay(false, true);
     }
 }