summaryrefslogtreecommitdiff
path: root/Gestor.Application/Componentes/DialogTransferencia.cs
diff options
context:
space:
mode:
authorLucas Faria Mendes <lucas.fariamo08@gmail.com>2026-03-30 13:38:18 +0000
committerLucas Faria Mendes <lucas.fariamo08@gmail.com>2026-03-30 13:38:18 +0000
commit1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1 (patch)
treee1c3b20ea08f0cf71122a1e73f0d395f8fd83874 /Gestor.Application/Componentes/DialogTransferencia.cs
parent674ca83ba9243a9e95a7568c797668dab6aee26a (diff)
downloadgestor-1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1.tar.gz
gestor-1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1.zip
chore: location
Diffstat (limited to 'Gestor.Application/Componentes/DialogTransferencia.cs')
-rw-r--r--Gestor.Application/Componentes/DialogTransferencia.cs110
1 files changed, 0 insertions, 110 deletions
diff --git a/Gestor.Application/Componentes/DialogTransferencia.cs b/Gestor.Application/Componentes/DialogTransferencia.cs
deleted file mode 100644
index 30f31c5..0000000
--- a/Gestor.Application/Componentes/DialogTransferencia.cs
+++ /dev/null
@@ -1,110 +0,0 @@
-using Assinador.Infrastructure.Helpers;
-using CurrencyTextBoxControl;
-using Gestor.Application.ViewModels.Financeiro;
-using Gestor.Common.Validation;
-using Gestor.Model.Domain.Financeiro;
-using System;
-using System.CodeDom.Compiler;
-using System.ComponentModel;
-using System.Diagnostics;
-using System.Runtime.CompilerServices;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Input;
-using System.Windows.Markup;
-
-namespace Gestor.Application.Componentes
-{
- public class DialogTransferencia : UserControl, IComponentConnector
- {
- internal ComboBox ContaOrigemBox;
-
- internal CurrencyTextBox ValorBox;
-
- internal DatePicker VencimentoBox;
-
- internal ComboBox ContaDestinoBox;
-
- private bool _contentLoaded;
-
- private TranferenciaViewModel ViewModel
- {
- get;
- }
-
- public DialogTransferencia(Transferencia transferencia)
- {
- this.ViewModel = new TranferenciaViewModel(transferencia);
- base.DataContext = this.ViewModel;
- this.InitializeComponent();
- }
-
- private void DataAtual_OnDoubleClick(object sender, RoutedEventArgs e)
- {
- ((DatePicker)sender).SelectedDate = new DateTime?(Functions.GetNetworkTime().Date);
- }
-
- public void DatePicker_OnLostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
- {
- DatePicker datePicker = (DatePicker)sender;
- datePicker.Text = ValidationHelper.FormatDate(datePicker.Text);
- }
-
- public void DatePicker_PreviewKeyDown(object sender, KeyEventArgs e)
- {
- if (e.Key != Key.Return)
- {
- return;
- }
- DatePicker str = (DatePicker)sender;
- DateTime date = Functions.GetNetworkTime().Date;
- str.Text = date.ToString("dd/MM/yyyy");
- }
-
- [DebuggerNonUserCode]
- [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
- public void InitializeComponent()
- {
- if (this._contentLoaded)
- {
- return;
- }
- this._contentLoaded = true;
- System.Windows.Application.LoadComponent(this, new Uri("/Gestor.Application;component/componentes/dialogtransferencia.xaml", UriKind.Relative));
- }
-
- [DebuggerNonUserCode]
- [EditorBrowsable(EditorBrowsableState.Never)]
- [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
- void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
- {
- switch (connectionId)
- {
- case 1:
- {
- this.ContaOrigemBox = (ComboBox)target;
- return;
- }
- case 2:
- {
- this.ValorBox = (CurrencyTextBox)target;
- return;
- }
- case 3:
- {
- this.VencimentoBox = (DatePicker)target;
- this.VencimentoBox.PreviewKeyDown += new KeyEventHandler(this.DatePicker_PreviewKeyDown);
- this.VencimentoBox.LostKeyboardFocus += new KeyboardFocusChangedEventHandler(this.DatePicker_OnLostKeyboardFocus);
- this.VencimentoBox.MouseDoubleClick += new MouseButtonEventHandler(this.DataAtual_OnDoubleClick);
- return;
- }
- case 4:
- {
- this.ContaDestinoBox = (ComboBox)target;
- return;
- }
- }
- this._contentLoaded = true;
- }
- }
-} \ No newline at end of file