<Window x:Class="OptionPremiumExample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:EcngTradingXaml="clr-namespace:StockSharp.Xaml;assembly=StockSharp.Xaml"
        Height="350" Width="500" Loaded="WindowLoaded">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <StackPanel Grid.Row="0" Margin="3" Orientation="Horizontal">
            <Label Height="25" HorizontalAlignment="Left" Margin="0,5,0,0" Content="Инструмент:" />
            <ComboBox x:Name="cbSecurities" Margin="0,5,0,0" HorizontalAlignment="Left" Width="200" Height="25" DisplayMemberPath="Name" SelectionChanged="Securities_OnSelected" />
        </StackPanel>

        <StackPanel Grid.Row="1" Margin="3" Orientation="Horizontal">
            <Label Content="Премия:" />
            <Label x:Name="lbPremium" Width="50" />
        </StackPanel>

        <StackPanel Grid.Row="2" Margin="3" Orientation="Horizontal">
            <Label Content="Цена БА:" />
            <TextBox x:Name="tbPrice" HorizontalAlignment="Left" IsReadOnly="False" Width="50" Height="25" Text="140000" />
            <Button  x:Name="btPremium"  Margin="5" Content="Расчитать премию"  Click="PremiumClick" />
        </StackPanel>
    </Grid>
</Window>
