Exemplo n.º 1
0
 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();
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
     }
 }