Exemplo n.º 1
0
        /// <summary>
        /// 子界面添加新的tab界面的方法(给子界面用的)
        /// </summary>
        /// <param name="name">控件唯一的 name 属性(类名)</param>
        /// <param name="caption">显示标题 caption</param>
        /// <param name="navigationData">参数</param>
        public void JumpInterface(string name, string caption, object navigationData)
        {
            Dictionary <string, object> data = new Dictionary <string, object>();

            data = (Dictionary <String, Object>)navigationData;

            if (name.Equals("RoleDistributionForm"))
            {
                RoleDistributionForm tab = new RoleDistributionForm();
                tab.id = data["id"].ToString();
                AaddUserControl(tab, name, caption);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 子界面添加新的tab界面的方法(给子界面用的)
        /// </summary>
        /// <param name="name">控件唯一的 name 属性(类名)</param>
        /// <param name="caption">显示标题 caption</param>
        /// <param name="navigationData">参数</param>
        public void JumpInterface(string name, string caption, object navigationData)
        {
            var data = new Dictionary <string, object>();

            data = (Dictionary <String, Object>)navigationData;

            if (name.Equals("RoleDistributionForm"))
            {
                var tab = new RoleDistributionForm();
                tab.id = data["id"].ToString();
                AaddUserControl(tab, name, caption);
            }
            else if (name.Equals("ClientVersionQueryForm"))
            {
                var tab = System.Type.GetType("Xr.RtManager.ClientVersionQueryForm");
                AaddUserControl(tab, name, caption);
            }
        }