2026-01-26 18:56:53 +09:00

56 lines
1.5 KiB
C#

// Copyright (c) 2020 LG Electronics Inc.
// SPDX-License-Identifier: LicenseRef-LGE-Proprietary
using Aurora;
using Hermes;
using System;
using System.Collections.Generic;
using System.Diagnostics;
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 AuroraUIComponent.Views
{
/// <summary>
/// TactTimeView.xaml에 대한 상호 작용 논리
/// </summary>
public partial class TactTimeView : UserControl
{
public TactTimeView()
{
InitializeComponent();
}
public TactTimeView(UserControl uIElement, IAuroraEnvironment env) : this()
{
Debug.Assert(bdUser != null, "bdUser returned null");
TactTimeViewModel vm = new TactTimeViewModel(env);
DataContext = vm;
bdUser.Child = uIElement;
if (uIElement.DataContext is IUser<LogItemCase> userVM) {
vm.UserVM = userVM;
}
}
private void TextBox_KeyDown(object sender, KeyEventArgs e)
{
if (DataContext is TactTimeViewModel vm) {
if (e.Key == Key.Enter) {
BtnFilter.Focus();
vm.KeyDown(e.Key);
}
}
}
}
}