void logo_MouseCaptureChanged(object sender, EventArgs e) { if (isReportLoading) { return; } logo = sender as IVL_Bitmap; selectedControl = logo; logo.BringToFront(); drawSelectionRect(); }
private void addLogo(ControlProperties IVLProps) { logo = new IVL_Bitmap(); logo.AccessibleDescription = IVLProps.ImageName;//Place for ImageLocation logo.Name = IVLProps.Name; logo.Tag = IVLProps.BindingType; logo.Location = new Point(IVLProps.X, IVLProps.Y); logo.Size = new Size(IVLProps.Width, IVLProps.Height); logo.ImageLocation = IVLProps.ImageName; this.reportCanvas_pnl.Controls.Add(logo); logo.MouseCaptureChanged += logo_MouseCaptureChanged; logo_MouseCaptureChanged(logo, null); }