Курсовая работа: Разбиение Делоне

case Key.Down:

shape.SetValue(Canvas.TopProperty, (double)shape.GetValue(Canvas.TopProperty) + 1);

break;

case Key.PageUp:

shape.SetValue(Canvas.LeftProperty, (double)shape.GetValue(Canvas.LeftProperty) - 1);

shape.SetValue(Canvas.TopProperty, (double)shape.GetValue(Canvas.TopProperty) - 1);

shape.Width += 2;

shape.Height += 2;

break;

case Key.PageDown:

if (shape.Width - 2 >= 0)

{

shape.SetValue(Canvas.LeftProperty, (double)shape.GetValue(Canvas.LeftProperty) + 1);

shape.SetValue(Canvas.TopProperty, (double)shape.GetValue(Canvas.TopProperty) + 1);

shape.Width -= 2;

shape.Height -= 2;

}

break;

case Key.Tab:

if (shape == c1)

shape = c2;

else

if (shape == c2)

shape = c3;

else

shape = c1;

break;

case Key.Escape:

Close();

К-во Просмотров: 384
Бесплатно скачать Курсовая работа: Разбиение Делоне