Eggtimer auf deutsch
This commit is contained in:
parent
e2de14cb70
commit
3d98c0136d
Binary file not shown.
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 3.2 KiB |
Binary file not shown.
Before Width: | Height: | Size: 708 B After Width: | Height: | Size: 3.6 KiB |
@ -31,11 +31,11 @@
|
|||||||
<MediaElement MediaEnded="alarm_mp3_MediaEnded" x:Name="alarm_mp3" Height="0" Source="/alarm.mp3" Stretch="Fill" Width="0" HorizontalAlignment="Left" Margin="0,116,0,0" VerticalAlignment="Top" AutoPlay="False" Volume="1"/>
|
<MediaElement MediaEnded="alarm_mp3_MediaEnded" x:Name="alarm_mp3" Height="0" Source="/alarm.mp3" Stretch="Fill" Width="0" HorizontalAlignment="Left" Margin="0,116,0,0" VerticalAlignment="Top" AutoPlay="False" Volume="1"/>
|
||||||
<TextBox x:Name="tmin" LostFocus="tmin_LostFocus" KeyUp="tmin_KeyUp" Margin="25,75,246,0" TextWrapping="Wrap" Text="8" d:LayoutOverrides="Width" VerticalAlignment="Top" InputScope="Number"/>
|
<TextBox x:Name="tmin" LostFocus="tmin_LostFocus" KeyUp="tmin_KeyUp" Margin="25,75,246,0" TextWrapping="Wrap" Text="8" d:LayoutOverrides="Width" VerticalAlignment="Top" InputScope="Number"/>
|
||||||
<TextBox x:Name="tsec" LostFocus="tsec_LostFocus" KeyUp="tsec_KeyUp" Margin="246,75,25,0" TextWrapping="Wrap" Text="00" VerticalAlignment="Top" InputScope="Number"/>
|
<TextBox x:Name="tsec" LostFocus="tsec_LostFocus" KeyUp="tsec_KeyUp" Margin="246,75,25,0" TextWrapping="Wrap" Text="00" VerticalAlignment="Top" InputScope="Number"/>
|
||||||
<TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" Margin="25,35,0,0"><Run Text="Time:"/><Run Text=" ("/><Run Text=" "/><Run Text="min"/><Run Text=" "/><Run Text=":"/><Run Text=" "/><Run Text="sec"/><Run Text=" "/><Run Text=")"/></TextBlock>
|
<TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" Margin="25,35,0,0"><Run Text="Zeit"/><Run Text=":"/><Run Text=" ("/><Run Text=" "/><Run Text="min"/><Run Text=" "/><Run Text=":"/><Run Text=" "/><Run Text="se"/><Run Text="k"/><Run Text=" "/><Run Text=")"/></TextBlock>
|
||||||
<TextBlock HorizontalAlignment="Left" Margin="25,160,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Text="Timer:"/>
|
<TextBlock HorizontalAlignment="Left" Margin="25,160,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Text="Timer:"/>
|
||||||
<TextBlock x:Name="clock" Margin="25,200,25,135" TextWrapping="Wrap" Text="12:00" FontSize="133.333" TextAlignment="Center"/>
|
<TextBlock x:Name="clock" Margin="25,200,25,135" TextWrapping="Wrap" Text="12:00" FontSize="133.333" TextAlignment="Center"/>
|
||||||
<TextBlock Margin="222,89,212,0" TextWrapping="Wrap" Text=":" VerticalAlignment="Top" d:LayoutOverrides="Width" FontSize="29.333"/>
|
<TextBlock Margin="222,89,212,0" TextWrapping="Wrap" Text=":" VerticalAlignment="Top" d:LayoutOverrides="Width" FontSize="29.333"/>
|
||||||
<Button x:Name="start" Margin="25,0,25,48" VerticalAlignment="Bottom" Click="start_Click" Content="start" /></Grid>
|
<Button x:Name="start" Margin="25,0,25,48" VerticalAlignment="Bottom" Click="start_Click" Content="Start" /></Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<!--Beispielcode für die Verwendung von ApplicationBar-->
|
<!--Beispielcode für die Verwendung von ApplicationBar-->
|
||||||
|
@ -34,10 +34,10 @@ namespace EggTimer
|
|||||||
|
|
||||||
void alarm_mp3_MediaEnded(object sender, RoutedEventArgs e)
|
void alarm_mp3_MediaEnded(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
if (this.start.Content.ToString() == "stop")
|
if (this.start.Content.ToString() == "Stop")
|
||||||
Deployment.Current.Dispatcher.BeginInvoke(() =>
|
Deployment.Current.Dispatcher.BeginInvoke(() =>
|
||||||
{
|
{
|
||||||
this.start.Content = "start";
|
this.start.Content = "Start";
|
||||||
tmin_KeyUp(null, null);
|
tmin_KeyUp(null, null);
|
||||||
tsec_KeyUp(null, null);
|
tsec_KeyUp(null, null);
|
||||||
});
|
});
|
||||||
@ -52,11 +52,11 @@ namespace EggTimer
|
|||||||
|
|
||||||
private void start_Click(object sender, RoutedEventArgs e)
|
private void start_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
if (this.start.Content.ToString() == "start")
|
if (this.start.Content.ToString() == "Start")
|
||||||
this.start.Content = "stop";
|
this.start.Content = "Stop";
|
||||||
else if (this.start.Content.ToString() == "stop")
|
else if (this.start.Content.ToString() == "Stop")
|
||||||
this.start.Content = "start";
|
this.start.Content = "Start";
|
||||||
if (this.start.Content.ToString() == "stop")
|
if (this.start.Content.ToString() == "Stop")
|
||||||
{
|
{
|
||||||
this.dest = DateTime.Now.AddMinutes(min).AddSeconds(sec);
|
this.dest = DateTime.Now.AddMinutes(min).AddSeconds(sec);
|
||||||
this.thread = new Thread(this.TimeRunner);
|
this.thread = new Thread(this.TimeRunner);
|
||||||
@ -64,7 +64,7 @@ namespace EggTimer
|
|||||||
this.thread.Start();
|
this.thread.Start();
|
||||||
while (!this.thread.IsAlive) ;
|
while (!this.thread.IsAlive) ;
|
||||||
}
|
}
|
||||||
if (this.start.Content.ToString() == "start")
|
if (this.start.Content.ToString() == "Start")
|
||||||
{
|
{
|
||||||
this.alarm_mp3.Stop();
|
this.alarm_mp3.Stop();
|
||||||
this._stop = true;
|
this._stop = true;
|
||||||
|
BIN
EggTimer/EggTimer/screen1.png
Normal file
BIN
EggTimer/EggTimer/screen1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
BIN
EggTimer/EggTimer/screen2.png
Normal file
BIN
EggTimer/EggTimer/screen2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
Loading…
Reference in New Issue
Block a user