35 lines
1000 B
C#
35 lines
1000 B
C#
using System.Windows.Controls;
|
||
using _29WxOrderWpf.Ctrls.Statistics.ViewModels;
|
||
|
||
namespace _29WxOrderWpf.Ctrls.Statistics
|
||
{
|
||
/// <summary>
|
||
/// 店铺营收统计页面(MVVM)。
|
||
/// 页面不写业务逻辑,只负责绑定 ShopRevenueStatisticsViewModel;
|
||
/// 如需注入自定义数据服务,请使用
|
||
/// new ShopRevenueStatisticsView(new ShopRevenueStatisticsViewModel(你的 IShopRevenueStatisticsService 实现))。
|
||
/// </summary>
|
||
public partial class ShopRevenueStatisticsView : UserControl
|
||
{
|
||
public ShopRevenueStatisticsView()
|
||
: this(new ShopRevenueStatisticsViewModel())
|
||
{
|
||
}
|
||
|
||
public ShopRevenueStatisticsView(ShopRevenueStatisticsViewModel viewModel)
|
||
{
|
||
InitializeComponent();
|
||
DataContext = viewModel;
|
||
}
|
||
|
||
private void help_mouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
|
||
{
|
||
InfoPopup.IsOpen = true;
|
||
}
|
||
|
||
private void close(object sender, System.Windows.RoutedEventArgs e)
|
||
{
|
||
InfoPopup.IsOpen = false;
|
||
}
|
||
}
|
||
} |