Ejemplo n.º 1
0
        /// <summary>
        /// 窗体关闭事件
        /// </summary>
        /// <param name="e"></param>
        protected override void OnFormClosing(FormClosingEventArgs e)
        {
            base.OnFormClosing(e);
            List <FCView> controls       = m_native.getControls();
            List <FCView> removeControls = new List <FCView>();
            int           controlsSize   = controls.Count;

            for (int i = 0; i < controlsSize; i++)
            {
                removeControls.Add(controls[i]);
            }
            for (int i = 0; i < controlsSize; i++)
            {
                m_native.removeMirror(removeControls[i]);
            }
            removeControls.Clear();
            if (m_native != null)
            {
                m_native.delete();
                m_native = null;
            }
            if (m_window != null)
            {
                WindowXmlEx window = m_window;
                m_window = null;
                window.close();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 关闭窗体
        /// </summary>
        /// <param name="var">变量</param>
        /// <returns>状态</returns>
        private double CLOSEWINDOW(CVariable var)
        {
            WindowXmlEx windowXmlEx = m_xml as WindowXmlEx;

            if (windowXmlEx != null)
            {
                windowXmlEx.close();
            }
            return(0);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 显示窗体
        /// </summary>
        /// <param name="var">变量</param>
        /// <returns>状态</returns>
        private double SHOWWINDOW(CVariable var)
        {
            string      xmlName    = m_indicator.getText(var.m_parameters[0]);
            string      windowName = m_indicator.getText(var.m_parameters[1]);
            WindowXmlEx window     = new WindowXmlEx();

            window.load(m_xml.Native, xmlName, windowName);
            window.show();
            return(0);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 显示窗体
        /// </summary>
        /// <param name="var">变量</param>
        /// <returns>状态</returns>
        private double SHOWWINDOW(CVariable var)
        {
            String      xmlName    = m_indicator.getText(var.m_parameters[0]);
            String      windowName = m_indicator.getText(var.m_parameters[1]);
            WindowXmlEx window     = new WindowXmlEx();

            window.load(m_xml.Native, xmlName, windowName);
            window.show();
            if (xmlName == "HotKeyWindow")
            {
                FCTextBox txtKey = window.getTextBox("txtHotKey");
                txtKey.Text = "本软件有如下快捷键:\r1. F1-F3  --> 快速出价100-300元\r2. F4-F10 --> 快速伏击400-1000元\r3. F11    --> 出价   \rHome   --> 伏击   \rEnd    --> 取消出价   \rEnter  --> 提交验证码   \rEsc    --> 手动断网重连4. 方向键【↑】及【↓】快速调整价格";
            }
            return(0);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// 显示窗体
        /// </summary>
        /// <param name="var">变量</param>
        /// <returns>状态</returns>
        private double SHOWWINDOW(CVariable var)
        {
            String      xmlName    = m_indicator.getText(var.m_parameters[0]);
            String      windowName = m_indicator.getText(var.m_parameters[1]);
            WindowXmlEx window     = null;

            if (xmlName == "project")
            {
                window = new ProjectWindow(m_xml.Native);
            }
            else
            {
                window = new WindowXmlEx();
                window.load(m_xml.Native, xmlName, windowName);
            }
            window.showDialog();
            return(0);
        }