- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
var firstLocation = new Tuple<Point, Point>(new Point(12, 444 - 38), new Point(30, 446 - 38));
var secondLocation = new Tuple<Point, Point>(new Point(12, 464 - 38), new Point(30, 464 - 38));
var thirdLocation = new Tuple<Point, Point>(new Point(12, 486 - 38), new Point(30, 484 - 38));
var first = new Tuple<Control, Control>(chbDimaGaugeNewContractPS, lblDimaGaugeNewContractPS);
var second = new Tuple<Control, Control>(chbDimaGaugeNewContractIBanking, lblDimaGaugeNewContractIBanking);
var third = new Tuple<Control, Control>(chbDimaGaugeNewContractActivePS, lblDimaGaugeNewContractActivePS);
var controls = new List<Tuple<Control, Control>> { first, second, third };
var points = new List<Tuple<Point, Point>> { firstLocation, secondLocation, thirdLocation };
int i = 0;
foreach (var t in controls.Where(x => !x.Item1.Enabled))
{
t.Item1.Location = points[i].Item1;
t.Item2.Location = points[i].Item2;
i++;
}
anonimb84a2f6fd141 06.12.2013 18:49 # +3
blackhearted 06.12.2013 19:25 # +3
anonimb84a2f6fd141 06.12.2013 19:31 # +2
guest 06.12.2013 20:34 # −1
LispGovno 06.12.2013 20:50 # 0
anonimb84a2f6fd141 06.12.2013 22:01 # −5
Но зачем? И в сперморешетке разве появилась автоматическая распаковка кортежей?
Stertor 06.12.2013 22:03 # −1
LispGovno 06.12.2013 22:11 # +4
Stertor 06.12.2013 22:12 # −2
kegdan 16.12.2013 15:43 # +10
guest 17.12.2013 14:47 # 0
http://msdn.microsoft.com/ru-ru/library/dd267698(v=vs.110).aspx
anonimb84a2f6fd141 18.12.2013 11:00 # 0
kegdan 18.12.2013 11:07 # +10