private void ChangeImages() { if (RightPanel.Controls.Count > 0) { foreach (MetroTile tile in RightPanel.Controls) { tile.TileImage = UiSettings.ResizedImage(TileSize, TileSize); Application.DoEvents(); } } RightPanel.Refresh(); }
private void RightPanel_DragEnter(object sender, DragEventArgs e) { Point p = PointToClient(new Point(e.X, e.Y)); Control ctrl = e.Data.GetData(e.Data.GetFormats(true)[0]) as Control; if (ctrl is R_ListCell) { e.Effect = DragDropEffects.Move; rec = new Rectangle(0, p.Y - 2, RightPanel.Width, 4); onDrag = true; RightPanel.Refresh(); } else { e.Effect = DragDropEffects.None; } }
private void RightPanel_DragLeave(object sender, EventArgs e) { onDrag = false; RightPanel.Refresh(); }