Пример #1
0
 public void PopulateImageList(ImageList imageList)
 {
     imageList.Images.Clear();
     imageList.Images.Add(iconProvider.GetStatusIconForState(ProjectState.NotConnected).Icon);
     imageList.Images.Add(iconProvider.GetStatusIconForState(ProjectState.Success).Icon);
     imageList.Images.Add(iconProvider.GetStatusIconForState(ProjectState.Broken).Icon);
     imageList.Images.Add(iconProvider.GetStatusIconForState(ProjectState.Building).Icon);
 }
 public void PopulateImageList(ImageList imageList)
 {
     imageList.Images.Clear();
     foreach (ProjectState x in stateIconOrder)
     {
         imageList.Images.Add(projectStateIconProvider.GetStatusIconForState(x).Icon);
     }
 }
 private void UpdateIcon()
 {
     StatusIcon = iconProvider.GetStatusIconForState(monitor.ProjectState);
 }