终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

EditFunctionParamView.xaml.cs 794 B

пре 1 година
12345678910111213141516171819202122232425262728
  1. using System.Windows.Input;
  2. namespace BPASmartClient.MorkCL.View
  3. {
  4. /// <summary>
  5. /// EditFunctionParamView.xaml 的交互逻辑
  6. /// </summary>
  7. public partial class EditFunctionParamView : Window
  8. {
  9. public EditFunctionParamView()
  10. {
  11. InitializeComponent();
  12. this.br.MouseLeftButtonDown += (o, e) => { if (e.LeftButton == MouseButtonState.Pressed) this.DragMove(); };
  13. ActionManage.GetInstance.Register((object b) =>
  14. {
  15. this.DialogResult = (bool)b;
  16. this.Close();
  17. }, "CloseFuncParmEditView", true);
  18. }
  19. private void Button_Click(object sender, RoutedEventArgs e)
  20. {
  21. this.DialogResult = false;
  22. this.Close();
  23. }
  24. }
  25. }