5 changed files with 78 additions and 3 deletions
@ -0,0 +1,28 @@ |
|||
<c:BWindow x:Class="BBWY.Client.Views.Order.ChooseDFType" |
|||
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:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
|||
xmlns:local="clr-namespace:BBWY.Client.Views.Order" |
|||
mc:Ignorable="d" |
|||
Title="代发方式" |
|||
Style="{StaticResource bwstyle}" |
|||
MinButtonVisibility="Collapsed" |
|||
MaxButtonVisibility="Collapsed" |
|||
Height="150" Width="300"> |
|||
<Grid> |
|||
<Grid.RowDefinitions> |
|||
<RowDefinition Height="30"/> |
|||
<RowDefinition/> |
|||
</Grid.RowDefinitions> |
|||
<Border BorderThickness="0,0,0,1" BorderBrush="{StaticResource MainMenu.BorderBrush}" |
|||
Background="{StaticResource Border.Background}"> |
|||
<TextBlock Text="选择代发方式" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
|||
</Border> |
|||
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center"> |
|||
<c:BButton Content="采购商品" Width="100" x:Name="btn_purchase" Click="btn_purchase_Click"/> |
|||
<c:BButton Content="关联订单" Width="100" Margin="10,0,0,0" x:Name="btn_relation" Click="btn_relation_Click"/> |
|||
</StackPanel> |
|||
</Grid> |
|||
</c:BWindow> |
@ -0,0 +1,33 @@ |
|||
using BBWY.Client.Models; |
|||
using BBWY.Controls; |
|||
|
|||
namespace BBWY.Client.Views.Order |
|||
{ |
|||
/// <summary>
|
|||
/// ChooseDFType.xaml 的交互逻辑
|
|||
/// </summary>
|
|||
public partial class ChooseDFType : BWindow |
|||
{ |
|||
|
|||
public DFType DFType { get; private set; } |
|||
|
|||
public ChooseDFType() |
|||
{ |
|||
InitializeComponent(); |
|||
} |
|||
|
|||
private void btn_purchase_Click(object sender, System.Windows.RoutedEventArgs e) |
|||
{ |
|||
this.DFType = DFType.在线采购; |
|||
this.DialogResult = true; |
|||
this.Close(); |
|||
} |
|||
|
|||
private void btn_relation_Click(object sender, System.Windows.RoutedEventArgs e) |
|||
{ |
|||
this.DFType = DFType.关联订单; |
|||
this.DialogResult = true; |
|||
this.Close(); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue