void imgTable_MouseCaptureChanged(object sender, EventArgs e) { if (isReportLoading) { return; } imgTable = sender as IVLTemplateCreator.IVLControls.IVL_ImageTable; selectedControl = imgTable; drawSelectionRect(); }
private void addImgBox(ControlProperties IVLProps) { bool isPortrait = LayoutDetails.Current.Orientation == LayoutDetails.PageOrientation.PORTRAIT; IVLTemplateCreator.IVLControls.IVL_ImageTable imgTable = new IVLTemplateCreator.IVLControls.IVL_ImageTable(imgFiles, isPortrait); imgTable.Tag = IVLProps.BindingType; imgTable.Name = IVLProps.Name; imgTable.Location = new Point(IVLProps.X, IVLProps.Y); imgTable.Size = new Size(IVLProps.Width, IVLProps.Height); imgTable.AccessibleDescription = IVLProps.ImageName;//Place for ImageLocation this.reportCanvas_pnl.Controls.Add(imgTable); imgTable.MouseCaptureChanged += imgTable_MouseCaptureChanged; imgTable_MouseCaptureChanged(imgTable, null); }