<Window x:Class="MethodSample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="调用沒有返回值的子程序" Height="193" Width="423" FontSize="14">
    <Grid>
        <Label Content="姓名：" Height="28" HorizontalAlignment="Left" Margin="25,36,0,0" Name="label1" VerticalAlignment="Top" />
        <TextBox Height="28" HorizontalAlignment="Left" Margin="83,36,0,0" Name="textBox1" VerticalAlignment="Top" Width="191" />
        <Button Content="问好" Height="28" HorizontalAlignment="Left" Margin="300,36,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />
        <TextBlock Height="31" HorizontalAlignment="Left" Margin="25,88,0,0" Name="tbResult" VerticalAlignment="Top" Width="350" />
    </Grid>
</Window>
