示例#1
0
 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));
     }
 }
示例#2
0
 public override bool GetImageInfo(out NCustomImageList imageList, out int imageIndex)
 {
     imageList  = ImageListCustom;
     imageIndex = 0;
     return(true);
 }
示例#3
0
        static NCustomDiagramButtonCommand()
        {
            Type thisType = typeof(NCustomDiagramButtonCommand);

            ImageListCustom = new NCustomImageList(NResourceHelper.BitmapFromResource(thisType, "CustomCommandbarImageList.png", "Nevron.Examples.Diagram.WinForm.Resources"), new NSize(16, 16));
        }
示例#4
0
        static NCustomChartCommander()
        {
            Type thisType = typeof(NCustomChartCommander);

            ImageListCustom = new NCustomImageList(NResourceHelper.BitmapFromResource(thisType, "CustomCommandbarImageList.png", "Nevron.Examples.Chart.WinForm.Resources"), new NSize(16, 16));
        }