public override bool GetCommandImageInfo(int commandId, out NCustomImageList imageList, out int imageIndex) { if (commandId == NCustomChartButtonCommand1.m_CommandId || commandId == NCustomChartButtonCommand2.m_CommandId) { imageList = ImageListCustom; imageIndex = 0; return(true); } else { return(base.GetCommandImageInfo(commandId, out imageList, out imageIndex)); } }
public override bool GetImageInfo(out NCustomImageList imageList, out int imageIndex) { imageList = ImageListCustom; imageIndex = 0; return(true); }
static NCustomDiagramButtonCommand() { Type thisType = typeof(NCustomDiagramButtonCommand); ImageListCustom = new NCustomImageList(NResourceHelper.BitmapFromResource(thisType, "CustomCommandbarImageList.png", "Nevron.Examples.Diagram.WinForm.Resources"), new NSize(16, 16)); }
static NCustomChartCommander() { Type thisType = typeof(NCustomChartCommander); ImageListCustom = new NCustomImageList(NResourceHelper.BitmapFromResource(thisType, "CustomCommandbarImageList.png", "Nevron.Examples.Chart.WinForm.Resources"), new NSize(16, 16)); }