Esempio n. 1
0
        private void axPopupControlMessage_ItemClick(object sender, AxXtremeSuiteControls._DPopupControlEvents_ItemClickEvent eventArgs)
        {
            if (eventArgs.item == m_PopupControlMessageItemClose)
            {
                AxXtremeSuiteControls.AxPopupControl popupControl = sender as AxXtremeSuiteControls.AxPopupControl;
                if (popupControl != null)
                {
                    popupControl.Close();
                }

                MainForm.Instance.m_PopupMessageTimer.Interval = 10;
            }
        }
Esempio n. 2
0
        private void axPopupControl_ItemClick(object sender, AxXtremeSuiteControls._DPopupControlEvents_ItemClickEvent eventArgs)
        {
            if (eventArgs.item == m_PopupControlItemU50)
            {
                AxXtremeSuiteControls.AxPopupControl popupControl = sender as AxXtremeSuiteControls.AxPopupControl;
                if (popupControl != null)
                {
                    popupControl.Close();
                }

                if (m_U50Form.Visible == true)
                {
                    m_U50Form.Activate();
                }
                else
                {
                    m_U50Form.Show();
                }
            }
            else if (eventArgs.item == m_PopupControlItemD50)
            {
                AxXtremeSuiteControls.AxPopupControl popupControl = sender as AxXtremeSuiteControls.AxPopupControl;
                if (popupControl != null)
                {
                    popupControl.Close();
                }

                if (m_D50Form.Visible == true)
                {
                    m_D50Form.Activate();
                }
                else
                {
                    m_D50Form.Show();
                }
            }
            else if (eventArgs.item == m_PopupControlItem03)
            {
                AxXtremeSuiteControls.AxPopupControl popupControl = sender as AxXtremeSuiteControls.AxPopupControl;
                if (popupControl != null)
                {
                    popupControl.Close();
                }

                if (m_RealU50Form.Visible == true)
                {
                    m_RealU50Form.Activate();
                }
                else
                {
                    m_RealU50Form.Show();
                }
            }
            else if (eventArgs.item == m_PopupControlItem04)
            {
                AxXtremeSuiteControls.AxPopupControl popupControl = sender as AxXtremeSuiteControls.AxPopupControl;
                if (popupControl != null)
                {
                    popupControl.Close();
                }

                if (m_RealD50Form.Visible == true)
                {
                    m_RealD50Form.Activate();
                }
                else
                {
                    m_RealD50Form.Show();
                }
            }
            else if (eventArgs.item == m_PopupControlItem05)
            {
                //AxXtremeSuiteControls.AxPopupControl popupControl = sender as AxXtremeSuiteControls.AxPopupControl;
                //if ( popupControl != null )
                //    popupControl.Close();
            }
            else if (eventArgs.item == m_PopupControlItem06)
            {
                //AxXtremeSuiteControls.AxPopupControl popupControl = sender as AxXtremeSuiteControls.AxPopupControl;
                //if ( popupControl != null )
                //    popupControl.Close();
            }
            else if (eventArgs.item == m_PopupControlItem07)
            {
                //AxXtremeSuiteControls.AxPopupControl popupControl = sender as AxXtremeSuiteControls.AxPopupControl;
                //if ( popupControl != null )
                //    popupControl.Close();
            }
            else if (eventArgs.item == m_PopupControlItem08)
            {
                //AxXtremeSuiteControls.AxPopupControl popupControl = sender as AxXtremeSuiteControls.AxPopupControl;
                //if ( popupControl != null )
                //    popupControl.Close();
            }
            else if (eventArgs.item == m_PopupControlItemOpenAll)
            {
                AxXtremeSuiteControls.AxPopupControl popupControl = sender as AxXtremeSuiteControls.AxPopupControl;
                if (popupControl != null)
                {
                    popupControl.Close();
                }

                if (m_U50Form.Visible == true)
                {
                    m_U50Form.Activate();
                }
                else
                {
                    m_U50Form.Show();
                }

                if (m_D50Form.Visible == true)
                {
                    m_D50Form.Activate();
                }
                else
                {
                    m_D50Form.Show();
                }

                if (m_RealU50Form.Visible == true)
                {
                    m_RealU50Form.Activate();
                }
                else
                {
                    m_RealU50Form.Show();
                }

                if (m_RealD50Form.Visible == true)
                {
                    m_RealD50Form.Activate();
                }
                else
                {
                    m_RealD50Form.Show();
                }
            }
            else if (eventArgs.item == m_PopupControlItemCloseAll)
            {
                AxXtremeSuiteControls.AxPopupControl popupControl = sender as AxXtremeSuiteControls.AxPopupControl;
                if (popupControl != null)
                {
                    popupControl.Close();
                }

                m_U50Form.Close();
                m_D50Form.Close();
                m_RealU50Form.Close();
                m_RealD50Form.Close();
            }
            else if (eventArgs.item == m_PopupControlItemOption)
            {
                AxXtremeSuiteControls.AxPopupControl popupControl = sender as AxXtremeSuiteControls.AxPopupControl;
                if (popupControl != null)
                {
                    popupControl.Close();
                }

                if (m_OptionForm.Visible == true)
                {
                    m_OptionForm.Activate();
                }
                else
                {
                    m_OptionForm.ShowDialog();
                }
            }
            else if (eventArgs.item == m_PopupControlItemTools)
            {
                AxXtremeSuiteControls.AxPopupControl popupControl = sender as AxXtremeSuiteControls.AxPopupControl;
                if (popupControl != null)
                {
                    popupControl.Close();
                }

                if (m_ToolsForm.Visible == true)
                {
                    m_ToolsForm.Activate();
                }
                else
                {
                    m_ToolsForm.ShowDialog();
                }
            }
            else if (eventArgs.item == m_PopupControlItemExit)
            {
                AxXtremeSuiteControls.AxPopupControl popupControl = sender as AxXtremeSuiteControls.AxPopupControl;
                if (popupControl != null)
                {
                    popupControl.Close();
                }

                m_U50Form.EndU50Form();
                m_D50Form.EndD50Form();
                m_RealU50Form.EndRealU50Form();
                m_RealD50Form.EndRealD50Form();

                this.Close();
            }
        }