using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace LLNet.Tienda.Dialogs.ChangeRate
{
    /// <summary>
    /// Summary description for dlgChangeRage.
    /// </summary>
    public class dlgChangeRage : GUI.FormBases.frmBase
    {
        #region CodeGen

        private SimpleButton btnAceptar;
        private PanelControl pnButtons;
        private DevExpress.XtraBars.Docking.DockManager dmMain;
        private Label lbCaption;
        private PanelControl pnCaption;
        private DevExpress.XtraGrid.Views.Grid.GridView gridView1;
        private DevExpress.XtraGrid.GridControl gridControl1;
        private LLNet.Model.PDV.DsPDV dsPDV1;
        private PanelControl pnMain;
        private PanelControl pnClientArea;
        private LLNet.Utils.NumericKeyboard numericKeyboard1;
        private DevExpress.XtraGrid.Columns.GridColumn colTIPO_UNIDAD;
        private DevExpress.XtraGrid.Columns.GridColumn colUNIDAD_ORIGEN;
        private DevExpress.XtraGrid.Columns.GridColumn colUNIDAD_DESTINO;
        private DevExpress.XtraGrid.Columns.GridColumn colFACTOR;
        private DevExpress.XtraGrid.Columns.GridColumn colMONEDA_ORIGEN;
        private DevExpress.XtraGrid.Columns.GridColumn colMONEDA_DESTINO;
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.Container components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(dlgChangeRage));
            this.btnAceptar = new DevExpress.XtraEditors.SimpleButton();
            this.pnButtons = new DevExpress.XtraEditors.PanelControl();
            this.dmMain = new DevExpress.XtraBars.Docking.DockManager();
            this.lbCaption = new System.Windows.Forms.Label();
            this.pnCaption = new DevExpress.XtraEditors.PanelControl();
            this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.colTIPO_UNIDAD = new DevExpress.XtraGrid.Columns.GridColumn();
            this.colUNIDAD_ORIGEN = new DevExpress.XtraGrid.Columns.GridColumn();
            this.colUNIDAD_DESTINO = new DevExpress.XtraGrid.Columns.GridColumn();
            this.colFACTOR = new DevExpress.XtraGrid.Columns.GridColumn();
            this.colMONEDA_ORIGEN = new DevExpress.XtraGrid.Columns.GridColumn();
            this.colMONEDA_DESTINO = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridControl1 = new DevExpress.XtraGrid.GridControl();
            this.dsPDV1 = new LLNet.Model.PDV.DsPDV();
            this.pnMain = new DevExpress.XtraEditors.PanelControl();
            this.pnClientArea = new DevExpress.XtraEditors.PanelControl();
            this.numericKeyboard1 = new LLNet.Utils.NumericKeyboard();
            ((System.ComponentModel.ISupportInitialize)(this.pnButtons)).BeginInit();
            this.pnButtons.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dmMain)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.pnCaption)).BeginInit();
            this.pnCaption.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.dsPDV1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.pnMain)).BeginInit();
            this.pnMain.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pnClientArea)).BeginInit();
            this.pnClientArea.SuspendLayout();
            this.SuspendLayout();
            // 
            // btnAceptar
            // 
            this.btnAceptar.Appearance.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnAceptar.Appearance.Options.UseFont = true;
            this.btnAceptar.Appearance.Options.UseTextOptions = true;
            this.btnAceptar.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.btnAceptar.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
            this.btnAceptar.Dock = System.Windows.Forms.DockStyle.Right;
            this.btnAceptar.Image = ((System.Drawing.Image)(resources.GetObject("btnAceptar.Image")));
            this.btnAceptar.Location = new System.Drawing.Point(508, 2);
            this.btnAceptar.Name = "btnAceptar";
            this.btnAceptar.Size = new System.Drawing.Size(150, 65);
            this.btnAceptar.TabIndex = 3;
            this.btnAceptar.Text = "[F12]                                                                 Continuar";
            this.btnAceptar.Click += new System.EventHandler(this.btnAceptar_Click);
            // 
            // pnButtons
            // 
            this.pnButtons.Controls.Add(this.btnAceptar);
            this.pnButtons.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.pnButtons.Location = new System.Drawing.Point(2, 256);
            this.pnButtons.Name = "pnButtons";
            this.pnButtons.Size = new System.Drawing.Size(660, 69);
            this.pnButtons.TabIndex = 0;
            // 
            // dmMain
            // 
            this.dmMain.TopZIndexControls.AddRange(new string[] {
            "DevExpress.XtraBars.BarDockControl",
            "System.Windows.Forms.StatusBar"});
            // 
            // lbCaption
            // 
            this.lbCaption.BackColor = System.Drawing.Color.Transparent;
            this.lbCaption.Dock = System.Windows.Forms.DockStyle.Fill;
            this.lbCaption.Font = new System.Drawing.Font("Arial", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lbCaption.Location = new System.Drawing.Point(2, 2);
            this.lbCaption.Name = "lbCaption";
            this.lbCaption.Size = new System.Drawing.Size(656, 43);
            this.lbCaption.TabIndex = 0;
            this.lbCaption.Text = "Tasas de Cambio del Día";
            this.lbCaption.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // pnCaption
            // 
            this.pnCaption.Appearance.BackColor = System.Drawing.SystemColors.InactiveCaption;
            this.pnCaption.Appearance.Options.UseBackColor = true;
            this.pnCaption.Controls.Add(this.lbCaption);
            this.pnCaption.Dock = System.Windows.Forms.DockStyle.Top;
            this.pnCaption.Location = new System.Drawing.Point(2, 2);
            this.pnCaption.Name = "pnCaption";
            this.pnCaption.Size = new System.Drawing.Size(660, 47);
            this.pnCaption.TabIndex = 0;
            // 
            // gridView1
            // 
            this.gridView1.Appearance.ColumnFilterButton.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.ColumnFilterButton.Options.UseFont = true;
            this.gridView1.Appearance.ColumnFilterButtonActive.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.ColumnFilterButtonActive.Options.UseFont = true;
            this.gridView1.Appearance.DetailTip.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.DetailTip.Options.UseFont = true;
            this.gridView1.Appearance.Empty.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.Empty.Options.UseFont = true;
            this.gridView1.Appearance.EvenRow.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.EvenRow.Options.UseFont = true;
            this.gridView1.Appearance.FilterCloseButton.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.FilterCloseButton.Options.UseFont = true;
            this.gridView1.Appearance.FilterPanel.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.FilterPanel.Options.UseFont = true;
            this.gridView1.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.FixedLine.Options.UseFont = true;
            this.gridView1.Appearance.FocusedCell.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.FocusedCell.Options.UseFont = true;
            this.gridView1.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.FocusedRow.Options.UseFont = true;
            this.gridView1.Appearance.FooterPanel.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.FooterPanel.Options.UseFont = true;
            this.gridView1.Appearance.GroupButton.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.GroupButton.Options.UseFont = true;
            this.gridView1.Appearance.GroupFooter.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.GroupFooter.Options.UseFont = true;
            this.gridView1.Appearance.GroupPanel.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.GroupPanel.Options.UseFont = true;
            this.gridView1.Appearance.GroupRow.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.GroupRow.Options.UseFont = true;
            this.gridView1.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.HeaderPanel.Options.UseFont = true;
            this.gridView1.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.HideSelectionRow.Options.UseFont = true;
            this.gridView1.Appearance.HorzLine.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.HorzLine.Options.UseFont = true;
            this.gridView1.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.OddRow.Options.UseFont = true;
            this.gridView1.Appearance.Preview.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.Preview.Options.UseFont = true;
            this.gridView1.Appearance.Row.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.Row.Options.UseFont = true;
            this.gridView1.Appearance.RowSeparator.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.RowSeparator.Options.UseFont = true;
            this.gridView1.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.SelectedRow.Options.UseFont = true;
            this.gridView1.Appearance.TopNewRow.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.TopNewRow.Options.UseFont = true;
            this.gridView1.Appearance.VertLine.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridView1.Appearance.VertLine.Options.UseFont = true;
            this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.colTIPO_UNIDAD,
            this.colUNIDAD_ORIGEN,
            this.colUNIDAD_DESTINO,
            this.colFACTOR,
            this.colMONEDA_ORIGEN,
            this.colMONEDA_DESTINO});
            this.gridView1.CustomizationFormBounds = new System.Drawing.Rectangle(802, 436, 208, 233);
            this.gridView1.GridControl = this.gridControl1;
            this.gridView1.Name = "gridView1";
            this.gridView1.OptionsView.ShowGroupPanel = false;
            this.gridView1.OptionsView.ShowHorzLines = false;
            this.gridView1.OptionsView.ShowIndicator = false;
            this.gridView1.OptionsView.ShowVertLines = false;
            // 
            // colTIPO_UNIDAD
            // 
            this.colTIPO_UNIDAD.Caption = "TIPO_UNIDAD";
            this.colTIPO_UNIDAD.FieldName = "TIPO_UNIDAD";
            this.colTIPO_UNIDAD.Name = "colTIPO_UNIDAD";
            this.colTIPO_UNIDAD.OptionsColumn.AllowEdit = false;
            this.colTIPO_UNIDAD.OptionsColumn.AllowFocus = false;
            this.colTIPO_UNIDAD.OptionsColumn.ReadOnly = true;
            this.colTIPO_UNIDAD.OptionsColumn.ShowInCustomizationForm = false;
            // 
            // colUNIDAD_ORIGEN
            // 
            this.colUNIDAD_ORIGEN.Caption = "UNIDAD_ORIGEN";
            this.colUNIDAD_ORIGEN.FieldName = "UNIDAD_ORIGEN";
            this.colUNIDAD_ORIGEN.Name = "colUNIDAD_ORIGEN";
            this.colUNIDAD_ORIGEN.OptionsColumn.AllowEdit = false;
            this.colUNIDAD_ORIGEN.OptionsColumn.AllowFocus = false;
            this.colUNIDAD_ORIGEN.OptionsColumn.ReadOnly = true;
            this.colUNIDAD_ORIGEN.OptionsColumn.ShowInCustomizationForm = false;
            // 
            // colUNIDAD_DESTINO
            // 
            this.colUNIDAD_DESTINO.Caption = "UNIDAD_DESTINO";
            this.colUNIDAD_DESTINO.FieldName = "UNIDAD_DESTINO";
            this.colUNIDAD_DESTINO.Name = "colUNIDAD_DESTINO";
            this.colUNIDAD_DESTINO.OptionsColumn.AllowEdit = false;
            this.colUNIDAD_DESTINO.OptionsColumn.AllowFocus = false;
            this.colUNIDAD_DESTINO.OptionsColumn.ReadOnly = true;
            this.colUNIDAD_DESTINO.OptionsColumn.ShowInCustomizationForm = false;
            // 
            // colFACTOR
            // 
            this.colFACTOR.Caption = "Tasa";
            this.colFACTOR.FieldName = "FACTOR";
            this.colFACTOR.Name = "colFACTOR";
            this.colFACTOR.Visible = true;
            this.colFACTOR.VisibleIndex = 2;
            this.colFACTOR.Width = 139;
            // 
            // colMONEDA_ORIGEN
            // 
            this.colMONEDA_ORIGEN.Caption = "De";
            this.colMONEDA_ORIGEN.FieldName = "MONEDA_ORIGEN";
            this.colMONEDA_ORIGEN.Name = "colMONEDA_ORIGEN";
            this.colMONEDA_ORIGEN.OptionsColumn.AllowEdit = false;
            this.colMONEDA_ORIGEN.OptionsColumn.AllowFocus = false;
            this.colMONEDA_ORIGEN.OptionsColumn.ReadOnly = true;
            this.colMONEDA_ORIGEN.Visible = true;
            this.colMONEDA_ORIGEN.VisibleIndex = 0;
            this.colMONEDA_ORIGEN.Width = 147;
            // 
            // colMONEDA_DESTINO
            // 
            this.colMONEDA_DESTINO.Caption = "A";
            this.colMONEDA_DESTINO.FieldName = "MONEDA_DESTINO";
            this.colMONEDA_DESTINO.Name = "colMONEDA_DESTINO";
            this.colMONEDA_DESTINO.OptionsColumn.AllowEdit = false;
            this.colMONEDA_DESTINO.OptionsColumn.AllowFocus = false;
            this.colMONEDA_DESTINO.OptionsColumn.ReadOnly = true;
            this.colMONEDA_DESTINO.Visible = true;
            this.colMONEDA_DESTINO.VisibleIndex = 1;
            this.colMONEDA_DESTINO.Width = 136;
            // 
            // gridControl1
            // 
            this.gridControl1.DataMember = "TASAS_CAMBIO";
            this.gridControl1.DataSource = this.dsPDV1;
            this.gridControl1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.gridControl1.EmbeddedNavigator.Name = "";
            this.gridControl1.Location = new System.Drawing.Point(2, 2);
            this.gridControl1.MainView = this.gridView1;
            this.gridControl1.Name = "gridControl1";
            this.gridControl1.Size = new System.Drawing.Size(435, 203);
            this.gridControl1.TabIndex = 1;
            this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.gridView1});
            // 
            // dsPDV1
            // 
            this.dsPDV1.DataSetName = "DsPDV";
            this.dsPDV1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
            // 
            // pnMain
            // 
            this.pnMain.Controls.Add(this.pnClientArea);
            this.pnMain.Controls.Add(this.pnCaption);
            this.pnMain.Controls.Add(this.pnButtons);
            this.pnMain.Dock = System.Windows.Forms.DockStyle.Fill;
            this.pnMain.Location = new System.Drawing.Point(0, 0);
            this.pnMain.Name = "pnMain";
            this.pnMain.Size = new System.Drawing.Size(664, 327);
            this.pnMain.TabIndex = 0;
            // 
            // pnClientArea
            // 
            this.pnClientArea.Controls.Add(this.gridControl1);
            this.pnClientArea.Controls.Add(this.numericKeyboard1);
            this.pnClientArea.Dock = System.Windows.Forms.DockStyle.Fill;
            this.pnClientArea.Location = new System.Drawing.Point(2, 49);
            this.pnClientArea.Name = "pnClientArea";
            this.pnClientArea.Size = new System.Drawing.Size(660, 207);
            this.pnClientArea.TabIndex = 0;
            // 
            // numericKeyboard1
            // 
            this.numericKeyboard1.Dock = System.Windows.Forms.DockStyle.Right;
            this.numericKeyboard1.Location = new System.Drawing.Point(437, 2);
            this.numericKeyboard1.Name = "numericKeyboard1";
            this.numericKeyboard1.Size = new System.Drawing.Size(221, 203);
            this.numericKeyboard1.TabIndex = 2;
            // 
            // dlgChangeRage
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.ClientSize = new System.Drawing.Size(664, 327);
            this.Controls.Add(this.pnMain);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.KeyPreview = true;
            this.Name = "dlgChangeRage";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "POS Retail 8.0.0";
            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dlgChangeRage_KeyDown);
            this.Load += new System.EventHandler(this.dlgChangeRage_Load);
            ((System.ComponentModel.ISupportInitialize)(this.pnButtons)).EndInit();
            this.pnButtons.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.dmMain)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.pnCaption)).EndInit();
            this.pnCaption.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.dsPDV1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.pnMain)).EndInit();
            this.pnMain.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.pnClientArea)).EndInit();
            this.pnClientArea.ResumeLayout(false);
            this.ResumeLayout(false);

        }
        #endregion

        #endregion

        #region Constructor

        public dlgChangeRage()
        {
            InitializeComponent();

            Utils.Helpers.Merge(GUI.CApp.bll.getTypedDataSet(dsPDV1.GetType(), dsPDV1.TASAS_CAMBIO.TableName, "TasaCambio"), dsPDV1);

            GUI.CApp.TraducirForm(this);
        }

        #endregion

        #region Eventos

        private void dlgChangeRage_Load(object sender, EventArgs e)
        {
            gridView1.FocusedColumn = colFACTOR;
            gridView1.ShowEditor();
        }

        private void btnAceptar_Click(object sender, EventArgs e)
        {
            GUI.CApp.bll.updateDataSet(dsPDV1);
            dsPDV1.TASAS_CAMBIO.AcceptChanges();
            DialogResult = DialogResult.OK;
        }

        private void btnCancelar_Click(object sender, EventArgs e)
        {
            dsPDV1.TASAS_CAMBIO.RejectChanges();
            DialogResult = DialogResult.OK;
        }

        private void dlgChangeRage_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F12)
                btnAceptar.PerformClick();
        }

        #endregion

    }
}