Example #1
0
        private void CommandLineControl_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            if (e.Button.Kind == ButtonPredefines.Search)
            {
                if (QuickSearchPopup != null)
                {
                    QuickSearchPopup.ExecuteCommandLine();
                }

                CommandLineControl.Focus();
            }

            else if (e.Button.Kind == ButtonPredefines.Combo)
            {
                CommandLineControl.ShowPopup();
            }

            else             // delete/clear text & close popup
            {
                DelayedCallback.Schedule(ResetTreeAndCommandLine);
            }

            return;
        }