C00225155-02/C00225155/MegaRobo.C00225155/MegaRobo.C00225155App/MenuViews/SuckFluidView.xaml.cs

50 lines
1.3 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
namespace MegaRobo.C00225155App.MenuViews
{
/// <summary>
/// SuckFluidView.xaml 的交互逻辑
/// </summary>
public partial class SuckFluidView : Window
{
public SuckFluidView()
{
InitializeComponent();
this.Closing += SuckFluidView_Closing;
}
private void SuckFluidView_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
// 如果未手动设置过 DialogResult即用户点击了右上角关闭默认设为 false
if (this.DialogResult == null)
{
this.DialogResult = false;
}
}
private void BtnOK_Click(object sender, RoutedEventArgs e)
{
this.DialogResult = true;
this.Close(); // 关闭窗口
}
private void BtnCancel_Click(object sender, RoutedEventArgs e)
{
this.DialogResult = false;
this.Close();
}
}
}