frmOpcionesDescontabilizar.cs
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Data;
5 using System.Drawing;
6 using System.Linq;
7 using System.Text;
8 using System.Threading.Tasks;
9 using System.Windows.Forms;
10 using sage.ew.formul.Forms;
12 using PostSharp.Aspects.Advices;
13 using System.Runtime.Remoting.Messaging;
14 using sage.ew.formul;
15 
16 namespace sage.addons.factucert.Visual.Forms
17 {
21  public partial class frmOpcionesDescontabilizar : FormBase
22  {
23  #region PROPIEDADES PUBLICAS
24 
25 
29  public AccionesDescontabilizar _AccionDescontabilizar { get; set; } = AccionesDescontabilizar.NoDeclarada;
30 
31 
32  #endregion PROPIEDADES PUBLICAS
33 
34 
35  #region CONSTRUCTOR
36 
37 
42  {
43  InitializeComponent();
44 
45  this.IconMensaje.Image = sage.ew.images.Properties.Resources.message_warning_64;
46 
47  this._MenuOpcionesBoton = false;
48 
49  if (!this.DesignMode)
50  {
51  this.btAnular.Click += new EventHandler(this.btAnular_Click);
52  this.btAnularBorrador.Click += new EventHandler(this.btAnulBorrador_Click);
53  this.btAbonoRectif.Click += new EventHandler(this.btAbonoRectif_Click);
54  this.btCancelar.Click += new EventHandler(this.btCancelar_Click);
55  this.KeyPress += new KeyPressEventHandler(this.frmOpcionesDescontabilizar_KeyPress);
56  }
57 
58  return;
59  }
60 
61 
62  #endregion CONSTRUCTOR
63 
64 
65  #region MÉTODOS PRIVADOS
66 
67 
73  private void frmOpcionesDescontabilizar_KeyPress(object sender, KeyPressEventArgs e)
74  {
75  if (e.KeyChar == (char)Keys.Escape)
76  {
77  this._AccionDescontabilizar = AccionesDescontabilizar.NoDeclarada;
78  this.Close();
79  }
80 
81  return;
82  }
83 
84 
90  private void btAnular_Click(object sender, EventArgs e)
91  {
92  this._AccionDescontabilizar = AccionesDescontabilizar.AnularSinGenerarBorrador;
93 
94  this.Close();
95 
96  return;
97  }
98 
99 
105  private void btAnulBorrador_Click(object sender, EventArgs e)
106  {
107  this._AccionDescontabilizar = AccionesDescontabilizar.AnularGenerandoBorrador;
108 
109  this.Close();
110 
111  return;
112  }
113 
114 
120  private void btAbonoRectif_Click(object sender, EventArgs e)
121  {
122  this._AccionDescontabilizar = AccionesDescontabilizar.AbonoRectificativa;
123 
124  this.Close();
125 
126  return;
127  }
128 
129 
135  private void btCancelar_Click(object sender, EventArgs e)
136  {
137  this._AccionDescontabilizar = AccionesDescontabilizar.NoDeclarada;
138 
139  this.Close();
140 
141  return;
142  }
143 
144 
145 
146 
147  #endregion MÉTODOS PRIVADOS
148 
149 
150  #region MÉTODOS PROTECTED OVERRIDE
151 
152 
157  protected override void OnShown(EventArgs e)
158  {
159  base.OnShown(e);
160 
161  this.CenterToScreen();
162  }
163 
164 
165  #endregion MÉTODOS PROTECTED OVERRIDE
166  }
167 }
static System.Drawing.Bitmap message_warning_64
Busca un recurso adaptado de tipo System.Drawing.Bitmap.
Este es el espacio de nombres de su módulo. Puede encontrar más información y ayuda en el fichero rea...
Clase de recurso fuertemente tipado, para buscar cadenas traducidas, etc.
Formulario base de Eurowin
Definition: clsFormul.cs:400
Formulario para presentar las difentes opciones de descontabilización en Ticketbai permitiendo al usu...