コード例 #1
0
 private void Grid_CellColorChanged(object sender, CellColorChangedEventArgs e)
 {
     using (Graphics g = gridPnl.CreateGraphics())
         using (SolidBrush brush = new SolidBrush(e.Color))
         {
             g.FillRectangle(brush, e.X, e.Y, e.Width, e.Height);
             g.DrawRectangle(Pens.White, e.X, e.Y, e.Width, e.Height);
         }
 }
コード例 #2
0
 protected void OnCellColorChanged(CellColorChangedEventArgs args)
 {
     CellColorChanged?.Invoke(this, args);
 }