level 11
AK大神为何含泪退役?M4大师为何退居二线?狙击大手为何欲哭无泪?神器94为何重现江湖?刀战达人为何被马来捅了菊花?警家为何烟雾连连?队友乱扔闪究竟是敌是友?ACE为何频繁被踢?高手为何被队友坑死?游戏语音为何传来阵阵童声?网吧键盘V、F11俩键为何被摁坏?服务器为何越来越卡?挑战第30关为何无故被踢?巨人城17关为何有人乱跑?泰坦为何惨死街头?挑战频道为何全天爆满?游戏骂人之风为何愈演愈烈? 单键魄狙为何退出江湖?CF为何呈现低龄化趋势?家长兜内现金为何不翼而飞?老马腰包为何越来越鼓?麒麟大手为何被认做爹娘?BUG里的一抹倩影究竟是人是鬼?连环被灭队案又有着什么不可告人的秘密?这一切究竟是人性的扭曲还是道德的沦丧?是教育的缺失还是现实的无奈?敬请收看ccav12《小学生上线了》
2013年12月30日 18点12分
3
level 7
<Canvas Name="canvas" Margin="3" Grid.Row="1" Background="LightBlue" >
<Ellipse Width="100" Height="100" Stroke="Green" Name="circle"
Canvas.Top="100" Canvas.Left="100" ></Ellipse>
</Canvas>
private void Window_Loaded(object sender, RoutedEventArgs e)
{
var top = Canvas.GetTop(circle);
var left = Canvas.GetLeft(circle);
var w = circle.ActualWidth;
var h = circle.ActualHeight;
var top2 = top + h / 2;
var left2 = left + w / 2;
Line line = new Line()
{
Stroke = circle.Stroke,
X1 = left2,
Y1 = top2,
X2 = left2,
Y2 = top2 - w / 2
};
canvas.Children.Add(line);
var timer = new System.Windows.Threading.DispatcherTimer();
timer.Interval = TimeSpan.FromSeconds(1);
timer.Tag = line;
timer.Tick += new EventHandler(timer_Tick);
timer.Start();
}
int angle = 30;
void timer_Tick(object sender, EventArgs e)
{
var timer = sender as System.Windows.Threading.DispatcherTimer;
var line = timer.Tag as Line;
line.RenderTransform = new RotateTransform(angle, line.X1, line.Y1);
if (angle >= 360)
angle = 30;
else
angle = angle + 30;
}
2013年12月31日 07点12分
4