Exemple #1
0
 private void change_button_Click(object sender, EventArgs e)
 {
     button1.Visible = false;
     _parent._RESET_INACTIVITY();
     VIEW_MODE         = "Information";
     detail_group.Text = VIEW_MODE;
     detail_list.Items.Clear();
     change_button.BackColor   = Color.LightBlue;
     hardware_button.BackColor = Color.FromKnownColor(KnownColor.Control);;
     software_button.BackColor = Color.FromKnownColor(KnownColor.Control);;
     if (CHANGES.Count > 0)
     {
         int index_value = 1;
         foreach (string HW in CHANGES)
         {
             if (HW.Length > 0)
             {
                 string detail_line = "";
                 if (index_value < 10)
                 {
                     detail_line = (CHANGES.Count < 100 ? "0" : "00");
                 }
                 else if (index_value < 100)
                 {
                     detail_line = (CHANGES.Count < 100 ? "" : "0");
                 }
                 detail_line = detail_line + index_value.ToString() + ")  ";
                 detail_list.Items.Add(detail_line + (HW.Contains("DateStamp") ? (VIEW_TIME_STAMPS ? HW : HW.Substring(0, HW.LastIndexOf("DateStamp") - 2)) : HW));
                 index_value++;
             }
         }
     }
 }