Beispiel #1
0
 void BtnClearClick(object sender, EventArgs e)
 {
     //Clears tag from the systems in the list
     try {
         if (cboTags.Text != "" & this.mcafeeApi != null)
         {
             int numCleared = mcafeeApi.ClearTag(rtbSystems.Lines.ToList(), cboTags.Text);
             if (chkVerify.Checked == true)
             {
                 VerifyTag("Clear", cboTags.Text);
             }
             MessageBox.Show(string.Format("Tag {0} cleared from {1} machine(s).", cboTags.Text, numCleared), string.Format("Cleared: {0}", cboTags.Text), MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
     } catch (Exception ex) {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }