示例#1
0
 private void lbTestWorkspaces_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (lbTestWorkspaces.SelectedIndex == -1)
     {
         btnDelete.Enabled = btnRename.Enabled = btnViewResults.Enabled = btnDuplicate.Enabled = btnExport.Enabled = false;
         tbDetails.Text    = "";
         return;
     }
     btnDelete.Enabled   = btnRename.Enabled = btnViewResults.Enabled = btnDuplicate.Enabled = btnExport.Enabled = true;
     activeTestWorkSpace = TestWorkspaceDataProvider.GetTestWorkspaceDataProvider().
                           LoadTestWorkspace(lbTestWorkspaces.SelectedItem.ToString());
     tbDetails.Text = activeTestWorkSpace.GetDetailsString();
 }