You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.3 KiB

<Window x:Class="TimerAndWorker.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:TimerAndWorker"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Label x:Name="lblTime" Grid.Row="0" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center"
Content="00:00:00"/>
<StackPanel Margin="10" Grid.Row="1">
<DockPanel DockPanel.Dock="Top">
<Button x:Name="btnSyncCalc" HorizontalAlignment="Left" Width="150" Content="Sync"
Click="btnSyncCalc_Click"/>
<Button x:Name="btnAsyncCalc" HorizontalAlignment="Right" Width="150" Content="Async"
Click="btnAsyncCalc_Click"/>
</DockPanel>
<ListBox x:Name="lbResult" Height="100"/>
<ProgressBar x:Name="pbCalcProcess" DockPanel.Dock="Bottom" Height="18"/>
</StackPanel>
</Grid>
</Window>