コード例 #1
0
 private void _grdHistory_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if(e.ColumnIndex == _colViewRerun.Index)
     {
         var gridItem= _gridItemList[e.RowIndex];
         var offlineDeploymentRun = _deployHistoryList.Single(i => i.Id == gridItem.OfflineDeploymentRunId);
         using(var dlg = new RunDeploymentForm(_diFactory, offlineDeploymentRun, _workingDirectory))
         {
             dlg.ShowDialog();
         }
         this.LoadData();
     }
 }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: gsbastian/Sriracha.Deploy
 private void _btnContinue_Click(object sender, EventArgs e)
 {
     var selectionList = new List<OfflineComponentSelection>();
     foreach (ComponentSelectionControl ctrl in _pnlAllComponents.Controls)
     {
         selectionList.Add(ctrl.GetComponentSelection());
     }
     if(!selectionList.Any(i=>i.SelectedMachineList.Any()))
     {
         MessageBox.Show("Please select at least one component/machine to deploy");
         return;
     }
     using(var dlg = new RunDeploymentForm(_diFactory, _batchRequest, selectionList, Path.GetDirectoryName(_txtRequestFileName.Text)))
     {
         dlg.ShowDialog();
     }
 }