示例#1
0
 /// <summary>
 /// Rafraichissement de la liste
 /// </summary>
 private void RefreshLstComApp()
 {
     //Si la valeur du refresh n'est pas null, pour blinder
     if (!String.IsNullOrEmpty(txtMinHangTime.Text))
     {
         EntityFactory comH = new EntityFactory();
         gvComApp.DataSource = comH.GetCOMs(long.Parse(txtMinHangTime.Text));
         gvComApp.DataBind();
     }
 }
示例#2
0
        /// <summary>
        /// Rafraichissement de la liste
        /// </summary>
        private void RefreshLstComApp()
        {
            //Si la valeur du refresh n'est pas null, pour blinder
            if (!String.IsNullOrEmpty(txtMinHangTime.Text))
            {

                //lstComApp.Clear();
                lstComApp.Items.Clear();

                EntityFactory comH = new EntityFactory();

                //=== Peuple la liste
                int i = 0;
                foreach (ComApp com in comH.GetCOMs(long.Parse(txtMinHangTime.Text)))
                {
                    ListViewItem itm = new ListViewItem(new string[] { com.ApplicationName, com.NbClass.ToString(), com.TotalResponseTime.ToString(), com.TotalInCall.ToString() });
                    lstComApp.Items.Add(itm);

                    //com.MinHangTime = long.Parse(txtMinHangTime.Text);

                    //=== Si l'application est considérer gelé on affiche la ligne en rouge
                    if (com.isHang) lstComApp.Items[i].BackColor = Color.Red;
                    i++;
                }
            }
        }