Exemplo n.º 1
0
        /// <summary>
        /// 创建子窗体


        /// </summary>
        /// <param name="sender">发送控件</param>
        /// <param name="e">控件事件</param>
        private void CallForm(object sender, System.EventArgs e)
        {
            C_Event.CFormEvent m_FormEvent = new C_Event.CFormEvent(m_Apps);
            //lblitle.Text = m_FormEvent.GetModuleClass(5, ((MenuItem)sender).Text, mSocketResule);
            //string sss = m_FormEvent.GetModuleClass(4, ((MenuStrip)sender).Text, mSocketResule).ToString();
            //this.lblStatus.Text = "正在打开窗体\"" + ((ToolStripMenuItem)sender).Text.ToString() + "\",请稍等...";
            m_FormEvent.CallForm(mParentForm, m_FormEvent.GetModuleClass(4, ((ToolStripMenuItem)sender).Text.ToString(), mSocketResule), m_ClientEvent);
        }
Exemplo n.º 2
0
 private void TrvMenu_Click(object sender, EventArgs e)
 {
     try
     {
         if (lastSelectNodeTage == currSelectNodeTag)
         {
             C_Event.CFormEvent m_FormEvent = new C_Event.CFormEvent(m_Apps);
             m_FormEvent.CallForm(mParentForm, m_FormEvent.GetModuleClass(4, currSelectNodeTag, mSocketResule), m_ClientEvent);
         }
         else
         {
             lastSelectNodeTage = currSelectNodeTag;
         }
     }
     catch
     {
     }
 }
Exemplo n.º 3
0
        private void TrvMenu_AfterSelect(object sender, TreeViewEventArgs e)
        {
            try
            {
                currSelectNodeTag = e.Node.Tag.ToString();

                if (lastSelectNodeTage == null)
                {
                    lastSelectNodeTage = e.Node.Tag.ToString();
                }

                C_Event.CFormEvent m_FormEvent = new C_Event.CFormEvent(m_Apps);
                if (e.Node.Tag != null)
                {
                    //this.lblStatus.Text = "正在打开窗体\"" + e.Node.Text.ToString() + "\",请稍等...";
                }
                m_FormEvent.CallForm(mParentForm, m_FormEvent.GetModuleClass(4, e.Node.Tag.ToString(), mSocketResule), m_ClientEvent);
            }
            catch
            {
            }
        }