示例#1
0
        private void axCommandBars_Execute(object sender, AxXtremeCommandBars._DCommandBarsEvents_ExecuteEvent e)
        {
            switch (e.control.Id)
            {
            case ID.ID_VIEW_OPTIONS:
                m_KLineViewOptionForm.ShowDialog();

                break;

            case ID.ID_VIEW_SEARCH_U50:
                //if ( this.ActiveMdiChild == null )
                //    break;

                KLineU50ConfigForm klineU50ConfigForm = new KLineU50ConfigForm();

                if (klineU50ConfigForm.ShowDialog() == DialogResult.OK)
                {
                }

                break;

            case ID.ID_VIEW_SEARCH_D50:
                if (this.ActiveMdiChild == null)
                {
                    break;
                }

                KLineD50ConfigForm klineD50ConfigForm = new KLineD50ConfigForm();

                if (klineD50ConfigForm.ShowDialog() == DialogResult.OK)
                {
                }

                break;

            case ID.ID_FILE_OPEN:
                LoadNewDocument();

                break;

            case ID.ID_FILE_CLOSE:
                if (this.ActiveMdiChild != null)
                {
                    this.ActiveMdiChild.Close();
                }

                break;

            case ID.ID_VIEW_CURVE:

                break;

            case ID.ID_VIEW_INFO:

                break;

            default:
                break;
            }
        }
        private void axCommandBars_Execute( object sender, AxXtremeCommandBars._DCommandBarsEvents_ExecuteEvent e )
        {
            switch ( e.control.Id )
            {
                case ID.ID_VIEW_OPTIONS:
                    m_KLineViewOptionForm.ShowDialog();

                    break;
                case ID.ID_VIEW_SEARCH_U50:
                    //if ( this.ActiveMdiChild == null )
                    //    break;

                    KLineU50ConfigForm klineU50ConfigForm = new KLineU50ConfigForm();

                    if ( klineU50ConfigForm.ShowDialog() == DialogResult.OK )
                    {
                    }

                    break;
                case ID.ID_VIEW_SEARCH_D50:
                    if ( this.ActiveMdiChild == null )
                        break;

                    KLineD50ConfigForm klineD50ConfigForm = new KLineD50ConfigForm();

                    if ( klineD50ConfigForm.ShowDialog() == DialogResult.OK )
                    {
                    }

                    break;
                case ID.ID_FILE_OPEN:
                    LoadNewDocument();

                    break;
                case ID.ID_FILE_CLOSE:
                    if ( this.ActiveMdiChild != null )
                        this.ActiveMdiChild.Close();

                    break;
                case ID.ID_VIEW_CURVE:

                    break;
                case ID.ID_VIEW_INFO:

                    break;
                default:
                    break;
            }
        }