public void ForceDeploy(object sender = null, EventArgs e = null)
 {
     var frmDeploy = new FormDeployProcess2(this._project, new DeployCmd(true));
     frmDeploy.ShowDialog(this);
 }
 private void DeploySelectedItems(ListBox.SelectedObjectCollection selected,
     bool forceDeploy)
 {
     var project = new DeployProject();
     foreach (var item in selected)
     {
         var entry = item as DeployEntry;
         if (entry != null)
         {
             project.Add(entry);
         }
     }
     var frmDeploy = new FormDeployProcess2(project, new DeployCmd(forceDeploy));
     frmDeploy.ShowDialog(this);
 }