禁止利润统计按钮多开窗口
This commit is contained in:
1 parent
88d75ff914
commit
4d11f4bdd3
1 file changed
+9
-2
@@ -1706,14 +1706,21 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
|
||||
FilterOrders();
|
||||
}
|
||||
|
||||
private DialogWindow _statisticsWindow;
|
||||
private void btn_ShowShopRevenueStatisticsView(object sender, RoutedEventArgs e)
|
||||
{
|
||||
new DialogWindow()
|
||||
if (_statisticsWindow == null)
|
||||
{
|
||||
_statisticsWindow = new DialogWindow()
|
||||
{
|
||||
Title = "统计",
|
||||
Content = new ShopRevenueStatisticsView(),
|
||||
|
||||
}.Show();
|
||||
};
|
||||
_statisticsWindow.Closed += (s, e) => _statisticsWindow = null;
|
||||
}
|
||||
_statisticsWindow.Show();
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user