Пример #1
0
 /// <summary>
 /// 发送命令消息方法
 /// </summary>
 /// <param name="sender">发送方源【this】</param>
 /// <param name="e">发送命令消息事件类</param>
 public static void SendCommandMessageMethod(object sender, SendCommandMessageEventArgs e)
 {
     if (null != SendCommandMessage)
     {
         SendCommandMessage(sender, e);
     }
 }
        void EventSubscribe_SendCommandMessage(object sender, SendCommandMessageEventArgs e)
        {
            RuntimePage rp = sender as RuntimePage;

            if (!rp.IRuntimePageManager.Equals(this))
            {
                return;
            }

            //-->判断
            if (null == e.CommandInfo)
            {
                return;
            }
            e.CommandInfo.TempValue.Add(
                new XAttribute(ConstantCollection.TABCONTROL_SELECTED_INDEX, this.tc_Manager.SelectedIndex),
                new XAttribute(ConstantCollection.FUNCTION_NAME, "EventSubscribe")
                );
            this.SendToService(e.CommandInfo, this);
        }