예제 #1
0
파일: ValuesConfig.cs 프로젝트: zzh-git/KS
        private void ChangeState()
        {
            try
            {
                string strIsAdd = TableConfig.getData("IsCanAddLabel");
                if ("true".Equals(strIsAdd) || "是".Equals(strIsAdd))
                {
                    GlobalVariables.IsCanAddLabel = true;
                }
                else
                {
                    GlobalVariables.IsCanAddLabel = false;
                }
            }
            catch
            {
                //MessageBox.Show("初始化 是否启用编辑 失败");
            }

            try
            {
                string strIsMove = TableConfig.getData("IsCanMoveLabel");
                if ("true".Equals(strIsMove) || "是".Equals(strIsMove))
                {
                    GlobalVariables.IsCanMoveLabel = true;
                }
                else
                {
                    GlobalVariables.IsCanMoveLabel = false;
                }

                GlobalVariables.dMJYPCZZ_Set = double.Parse(TableConfig.getData("MJYPCZZ_Set"));
            }
            catch
            {
                //MessageBox.Show("初始化 是否可以移动Label 失败");
            }
        }