| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using ivf_tl_Entity.Entity.Alarm;
- 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 ivf_tl_Manage.Win
- {
- /// <summary>
- /// AlarmDetailWindow.xaml 的交互逻辑
- /// </summary>
- public partial class AlarmDetailWindow : Window
- {
- public AlarmDetailWindow(AlarmHistoryEntity alarmHistoryEntity, Window w)
- {
- InitializeComponent();
- AlarmHistorySource = alarmHistoryEntity;
- this.Owner = w;
- this.Unloaded += (s, e) => w.Activate();
- }
- public AlarmHistoryEntity AlarmHistorySource
- {
- get { return (AlarmHistoryEntity)GetValue(AlarmHistorySourceProperty); }
- set { SetValue(AlarmHistorySourceProperty, value); }
- }
- // Using a DependencyProperty as the backing store for AlarmHistorySource. This enables animation, styling, binding, etc...
- public static readonly DependencyProperty AlarmHistorySourceProperty =
- DependencyProperty.Register("AlarmHistorySource", typeof(AlarmHistoryEntity), typeof(AlarmDetailWindow), new PropertyMetadata(null));
- private void StartDish_Click(object sender, RoutedEventArgs e)
- {
- this.DialogResult = true;
- this.Close();
- return;
- }
- private void Close_Click(object sender, RoutedEventArgs e)
- {
- this.DialogResult = false;
- this.Close();
- return;
- }
- }
- }
|