LambdaMechanism Mech = new LambdaMechanism(Angle, Radius);
Mech.Draw(canvas);
new Thread(()=>
{
Thread.Sleep(TimeSpan.FromSeconds(3));
MessageBox.Show("Yes");
}).Start();
await Task.Delay(3000).ContinueWith(_ => MessageBox.Show("Yes"))
Стоит ли учиться по по версии c# 5.0, в то время когда уже вышла 7.0?Учиться - стоит. Повышать квалификацию - вряд ли...
<!--noindex-->
menu html
<!--/noindex-->
string file = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\Otherfile";
string file = Environment.ExpandEnvironmentVariables(@"%LOCALAPPDATA%\Otherfile");
string appData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
string file = Path.Combine(appData, "Otherfile");
var q = new {name = (object)"Cool Name", year = (decimal)2017};
<EventTrigger RoutedEvent="StackPanel.MouseEnter">
<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard>
<ColorAnimation
AutoReverse="False"
Duration="0:0:1"
From="Blue" To="Red"
AccelerationRatio="1"
Storyboard.TargetProperty="(StackPanel.Background).(SolidColorBrush.Color)"
FillBehavior="HoldEnd">
</ColorAnimation>
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
<EventTrigger RoutedEvent="StackPanel.MouseLeave">
<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard>
<ColorAnimation
AutoReverse="False"
Duration="0:0:1"
From="Red" To="Blue"
AccelerationRatio="1"
Storyboard.TargetProperty="(StackPanel.Background).(SolidColorBrush.Color)"
FillBehavior="HoldEnd">
</ColorAnimation>
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>