예제 #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();
 }
예제 #2
0
        private void dgRemotePackage_MouseDown(object sender, MouseEventArgs e)
        {
            if (this.trvSolution.SelectedNode != null
                && !this.trvSolution.Nodes[0].IsSelected
                && e.Y > this.dgRemotePackage.ColumnHeadersHeight
                && e.Button == MouseButtons.Left
                && this.dgRemotePackage.SelectedRows.Count > 0)
            {
                PackageCollection dlls = new PackageCollection();
                dlls.Action = PackageAction.Download;
                foreach (DataGridViewRow row in this.dgRemotePackage.SelectedRows)
                {
                    dlls.Packages.Add(row.Cells["dgvremotepackage"].Value.ToString());
                    dlls.DateTimes.Add(row.Cells["dgvremotepackagedate"].Value.ToString());
                }
                dlls.Solution = SolutionName;
                dlls.Type = PackageType;

                this.DoDragDrop(dlls, DragDropEffects.Copy | DragDropEffects.Move);
            }
        }
예제 #3
0
 internal PackageTransferForm(PackageCollection dlls, string localPackagePath)
 {
     InitializeComponent();
     packageCollection = dlls;
     LocalPackagePath = localPackagePath;
 }