public ImageView(DrawingImage image, Pad pad) : base() { this.drawingImage = image; this.Pad = pad; this.ToolTipEnabled = true; this.ToolTipFormat = "ttoot"; }
public void DrawImage(DrawingImage image, int padNumber) { lock(this.dataLock) { if (!this.volumePadShown && padNumber > 1) --padNumber; ImageView view = new ImageView(image, this.pads[padNumber]); image.Updated += new EventHandler(this.HandleUpdated); this.pads[padNumber].AddPrimitive(view); view.SetInterval(this.leftDateTime, this.rightDateTime); this.contentUpdated = true; } }