|
@@ -0,0 +1,53 @@
|
|
|
+using SCADA.CommonCtrl.WpfControl;
|
|
|
+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.Navigation;
|
|
|
+using System.Windows.Shapes;
|
|
|
+
|
|
|
+namespace SCADA_DAQ.Customer.Views.Uct
|
|
|
+{
|
|
|
+ /// <summary>
|
|
|
+ /// UctTimeSelect.xaml 的交互逻辑
|
|
|
+ /// </summary>
|
|
|
+ public partial class UctTimeSelect : BaseUserControl
|
|
|
+ {
|
|
|
+ public UctTimeSelect()
|
|
|
+ {
|
|
|
+ InitializeComponent();
|
|
|
+ }
|
|
|
+ public event EventHandler SelectTimeChangeEvent;
|
|
|
+
|
|
|
+ public event EventHandler ReturnTodayEvent;
|
|
|
+
|
|
|
+
|
|
|
+ private void IconButton_Click(object sender, RoutedEventArgs e)
|
|
|
+ {
|
|
|
+ if (SelectTimeChangeEvent != null)
|
|
|
+ {
|
|
|
+ SelectTimeChangeEvent.Invoke(this, new EventArgs());
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ private void IconButton_Click_1(object sender, RoutedEventArgs e)
|
|
|
+ {
|
|
|
+ //Env.selectTimeModel.Year = DateTime.Now.Year;
|
|
|
+ //Env.selectTimeModel.Month = DateTime.Now.Month;
|
|
|
+ //Env.selectTimeModel.Day = DateTime.Now.Day;
|
|
|
+ if (ReturnTodayEvent != null)
|
|
|
+ {
|
|
|
+ ReturnTodayEvent.Invoke(this, new EventArgs());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|