Пример #1
0
 public ColorSocketObject(SocketConstants.SocketAction socketAction, SimpleColor color)
     : this(socketAction, color.A, color.R, color.G, color.B)
 {
 }
Пример #2
0
 public ColorSocketObject(SocketConstants.SocketAction socketAction, byte a, byte r, byte g, byte b)
     : base(socketAction)
 {
     Value = new SimpleColor(a, r, g, b);
 }
        private void connection_OnGridColorReceived(SimpleColor gridColor)
        {
            if (gridPen != null)
                gridPen.Dispose();
            gridPen = new Pen(Color.FromArgb(gridColor.A, gridColor.R, gridColor.G, gridColor.B));

            RefreshMapPictureBox();
        }
Пример #4
0
 private void connection_OnGridColorReceived(SimpleColor gridColor)
 {
     gridTileColor = new Color(gridColor.R, gridColor.G, gridColor.B, gridColor.A);
 }
Пример #5
0
        public void SetGridColor(SimpleColor gridColor)
        {
            if (gridPen != null)
                gridPen.Dispose();
            gridPen = new Pen(Color.FromArgb(gridColor.A, gridColor.R, gridColor.G, gridColor.B));

            RefreshAll();
        }
Пример #6
0
        public void WriteGridColor(SimpleColor color)
        {
            if (ClientsCount == 0)
                return;

            EnqueueWrite(new ColorSocketObject(SocketConstants.SocketAction.GridColor, color.A, color.R, color.G, color.B));
        }
Пример #7
0
 public ColorSocketObject(SocketConstants.SocketAction socketAction, SimpleColor color) :
     this(socketAction, color.A, color.R, color.G, color.B)
 {
 }
Пример #8
0
 public ColorSocketObject(SocketConstants.SocketAction socketAction, byte a, byte r, byte g, byte b) :
     base(socketAction)
 {
     Value = new SimpleColor(a, r, g, b);
 }
Пример #9
0
 private void connection_OnGridColorReceived(SimpleColor gridColor)
 {
     this.ctlDnDMap.SetGridColor(gridColor);
 }