5 changed files with 61 additions and 0 deletions
@ -0,0 +1,17 @@ |
|||||
|
using BBWY.Client.Models; |
||||
|
|
||||
|
namespace BBWY.Client.ViewModels |
||||
|
{ |
||||
|
public class EditServiceOrderViewModel: BaseVM |
||||
|
{ |
||||
|
public EditServiceOrderViewModel() |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public void SetData(ServiceOrder serviceOrder) |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
<c:BWindow x:Class="BBWY.Client.Views.ServiceOrder.EditServiceOrder" |
||||
|
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:BBWY.Client.Views.ServiceOrder" |
||||
|
mc:Ignorable="d" |
||||
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
||||
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors" |
||||
|
Style="{StaticResource bwstyle}" |
||||
|
DataContext="{Binding EditServiceOrder,Source={StaticResource Locator}}" |
||||
|
Title="EditServiceOrder" Height="450" Width="340"> |
||||
|
<Grid> |
||||
|
|
||||
|
</Grid> |
||||
|
</c:BWindow> |
@ -0,0 +1,18 @@ |
|||||
|
using BBWY.Client.ViewModels; |
||||
|
using BBWY.Controls; |
||||
|
using System.Windows; |
||||
|
|
||||
|
namespace BBWY.Client.Views.ServiceOrder |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// EditServiceOrder.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class EditServiceOrder : BWindow |
||||
|
{ |
||||
|
public EditServiceOrder(Models.ServiceOrder serviceOrder) |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
(this.DataContext as EditServiceOrderViewModel).SetData(serviceOrder); |
||||
|
} |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue