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_Operate.Windows { /// /// GetDateWindow.xaml 的交互逻辑 /// public partial class GetDateWindow : Window { public string Date { get; private set; } = string.Empty; public bool isClos = true; public GetDateWindow(Window w) { InitializeComponent(); this.Owner = w; _dateControl.SelectDateAction += _dateControl_SelectDateAction; _dateControl.CloseAction += _dateControl_CloseAction; _dateControl.isNYR = true; //this.Loaded += (s, e) => //{ // AppData.Instance.MainWindow.Mark(true); //}; //this.Closing += (s, e) => //{ // if (isClos) // { // AppData.Instance.MainWindow.Mark(false); // } //}; } public void SetSelectTime(DateTime currentDate) { _dateControl.SetSelectTime(currentDate); } public void SetSelectWeiLai() { _dateControl.SetSelectWeiLai(); } private void _dateControl_CloseAction(object obj) { Close(); } private void _dateControl_SelectDateAction(string obj) { Date = obj; DialogResult = true; } } }