private void SetAxeLabelPositions(CoordinateVisualize coordinateVisualize) { Label[] _axeLabels = new Label[] { lblYmax, lblYmin, lblXmax, lblXmin, lblImag, lblReal }; Point[] _800x800LblPos = { new Point(440, 26), new Point(440, 809), new Point(808, 393), new Point(27, 395), new Point(392, 26), new Point(798, 442) }; Point[] _600x600LblPos = { new Point(330, 28), new Point(330, 611), new Point(609, 296), new Point(24, 296), new Point(290, 28), new Point(599, 335) }; Point[] currentLblPos = (ComplexImage.Scale == 800) ? _800x800LblPos : _600x600LblPos; int index = 0; foreach (var lblPos in currentLblPos) { _axeLabels[index].Location = lblPos; index++; } }
private void SetAxeLabelColors(CoordinateVisualize coordinateVisualize, bool resetRequest) { Label[] _axeLabels = new Label[] { lblYmax, lblYmin, lblXmax, lblXmin, lblImag, lblReal }; Color actualColor = (coordinateVisualize.IsColorful) ? Color.Purple : SystemColors.Control; actualColor = (resetRequest) ? SystemColors.Control : actualColor; for (int i = 0; i < _axeLabels.Length; i++) { _axeLabels[i].BackColor = actualColor; } }