#develop (short for SharpDevelop) is a free IDE for .NET programming languages.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

51 lines
1.1 KiB

// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
using System;
using System.Drawing;
using System.Windows.Forms;
using ICSharpCode.SharpDevelop;
namespace Debugger
{
/// <summary>
/// Description of DebuggerIcons.
/// </summary>
public static class DebuggerIcons
{
static ImageList imageList;
public static ImageList ImageList {
get {
return imageList;
}
}
static DebuggerIcons()
{
imageList = new ImageList();
imageList.Images.Add(IconService.GetBitmap("Icons.16x16.Class"));
imageList.Images.Add(IconService.GetBitmap("Icons.16x16.Field"));
imageList.Images.Add(IconService.GetBitmap("Icons.16x16.Property"));
}
public static Image GetImage(Variable variable)
{
return imageList.Images[GetImageListIndex(variable)];
}
public static int GetImageListIndex(Variable variable)
{
if (variable.ValueProxy is ObjectValue) {
return 0; // Class
} else {
return 1; // Field
}
}
}
}