PowerArgs.Cli.Grid.InitGridView C# (CSharp) Method

InitGridView() private method

private InitGridView ( ) : void
return void
        private void InitGridView()
        {
            this.KeyInputReceived.SubscribeForLifetime(OnKeyInputReceived, this.LifetimeManager);

            this.filterTextDebouncer = new ActionDebouncer(TimeSpan.FromSeconds(0), () =>
            {
                if (Application != null && FilterTextBox != null)
                {
                    Application.QueueAction(() =>
                    {
                        FilterText = FilterTextBox.Value.ToString();
                    });
                }
            });

            // don't accept focus unless I have at least one item in the data view
            this.Focused.SubscribeForLifetime(() =>
            {
                if (DataView.Items.Count == 0)
                {
                    Application.FocusManager.TryMoveFocus();
                }
            }, this.LifetimeManager);
        }