예제 #1
0
        private void ShowGridCheckBox_CheckedChanged(object sender, EventArgs e)
        {
            if (CurrPixelMap != null)
            {
                CurrPixelMap.ShowGrid   = ShowGridCheckBox.Checked;
                CurrPixelMap.PixelWidth = PixelMap.DefaultPixelWidth - (CurrPixelMap.ShowGrid ? CurrPixelMap.GridWidth : 0);

                PixelPainter.RefreshPixel();
            }
        }
예제 #2
0
        private void GridWidthBox_TextChanged(object sender, EventArgs e)
        {
            int w = 0;

            if (int.TryParse(GridWidthBox.Text, out w))
            {
                if (CurrPixelMap != null)
                {
                    CurrPixelMap.GridWidth = (w == 0 ? 1 : w);
                    PixelPainter.RefreshPixel();
                }
            }
        }