示例#1
0
 protected void ClearBtn_Click(object sender, EventArgs e)
 {
     Built = false;
     using (VirusDescriptionActions curVirus = new VirusDescriptionActions())
     {
         curVirus.EmptyVirus();
         DescriptionList.DataSource = null;
         DescriptionList.DataBind();
         VirusDescriptionTitle.Visible = false;
         NoSelected.Visible            = true;
         LabelTotalText.Text           = "";
         lblTotal.Text           = "";
         LabelTotalF_in.Text     = "";
         lblTotalF_in.Text       = "";
         LabelTotalF_out.Text    = "";
         lblTotalF_out.Text      = "";
         UpdateBtn.Visible       = false;
         BuildCombo.Visible      = false;
         BuildRow.Visible        = false;
         BuildCol.Visible        = false;
         ClearBtn.Visible        = false;
         abstractionNone.Visible = abstractionNone.Visible = abstractionResults.Visible = abstractionGrid.Visible = false;
         directNone.Visible      = direct.Visible = directGrid.Visible = false;
         indirectNone.Visible    = indirectGrid.Visible = indirect.Visible = false;
         RowResults.Visible      = RowGrid.Visible = false;
         ColumnResults.Visible   = ColumnGrid.Visible = false;
     }
 }
 protected void homeBtn_Click(object sender, EventArgs e)
 {
     using (VirusDescriptionActions usersVirus = new VirusDescriptionActions())
     {
         usersVirus.EmptyVirus();
     }
     Response.Redirect("~/Default.aspx");
 }