Пример #1
0
        public static void SetPortapapeles(KeyEventArgs e, RadGridView grid)
        {
            if (e.KeyCode == Keys.F11)
            {
                if (grid.SelectedRows.Count > 0)
                {
                    var titulo = grid.SelectedRows.FirstOrDefault().DataBoundItem as TituloDto;
                    if (titulo == null)
                        return;

                    Clipboard.SetText(string.Format("{0};{1};{2}", titulo.NombreTitulo, titulo.AutorNombre, titulo.EditorialNombre));
                    MessageBoxDisplayService _messageBoxDisplayServic = new MessageBoxDisplayService();
                    _messageBoxDisplayServic.ShowSuccess("Se copió al Portapapeles");
                }
            }
        }
        public FrmProveedoresDevolucion(IFormFactory formFactory, ILaPazUow uow, IProveedorNegocio proveedorNegocio, IClock clock, MessageBoxDisplayService messageBoxDisplayService)
        {
            FormFactory = formFactory;

            Uow = uow;
            _clock = clock;
            SortColumn = "FechaAlta";
            SortDirection = "DESC";

            _proveedorNegocio = proveedorNegocio;
            _messageBoxDisplayService = messageBoxDisplayService;

            InitializeComponent();

            InicializarPaginador();

            //Fix para centrar columnas.
            //this.GridCtaCte.CellFormatting += this.Grilla_CellFormatting;

            //MainGrid = GridCtaCte;
            //MainPager = ProveedoreCtaCtePager;
            Spinner = ucProgressSpinner1;
        }