Beispiel #1
0
        /// <summary>
        /// 在可用机构列表中选择一个机构作为当前登录机构
        /// </summary>
        public void SelectAgency(int index)
        {
            if ((index < 0) || (index >= agencies.Count()))
            {
                if (Thread.CurrentThread.CurrentUICulture.Name.Substring(0, 2) == "en")
                {
                    throw new Exception("Index out of range");
                }
                else
                {
                    throw new Exception("索引超出数组范围!");
                }
            }
            else
            {
                currentAgencyInfo = agencies[index].Clone();

                //GetAvailableRoles(currentAgencyInfo.AgencyID);
            }
        }
Beispiel #2
0
        public TAgencyInfo Clone()
        {
            TAgencyInfo rlt = MemberwiseClone() as TAgencyInfo;

            return(rlt);
        }