2026-03-10 19:56:55 +00:00
|
|
|
|
using OperationControl.Models;
|
|
|
|
|
|
using OperationControl.ViewModels.Views.Operacao;
|
|
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
|
using System.Windows.Input;
|
|
|
|
|
|
namespace OperationControl.Views.Operacao
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Interaction logic for OperacaoBottomView.xaml
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public partial class OperacaoBottomView : System.Windows.Controls.UserControl
|
|
|
|
|
|
{
|
|
|
|
|
|
public OperacaoBottomViewModel _vm;
|
|
|
|
|
|
|
|
|
|
|
|
public OperacaoBottomView()
|
|
|
|
|
|
{
|
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
_vm = new OperacaoBottomViewModel();
|
|
|
|
|
|
DataContext = _vm;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public OperacaoBottomView(OperacaoBottomViewModel vm)
|
|
|
|
|
|
{
|
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
_vm = vm;
|
|
|
|
|
|
DataContext = _vm;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void Alerta_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (sender is Border border && border.DataContext is AlertaModel alerta)
|
|
|
|
|
|
{
|
2026-03-11 20:11:17 +00:00
|
|
|
|
_vm?.ClicarNoAlerta(alerta);
|
2026-03-10 19:56:55 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|