From 00ea1cd461d6d8d128d727f6a40edca75da9ccdd Mon Sep 17 00:00:00 2001 From: xcd <834800634@qq.com> Date: 星期三, 08 七月 2020 16:38:46 +0800 Subject: [PATCH] 相机运行界面基类添加操作配置 gocator驱动修正长宽比例,输出进行复制插值处理 显示基元添加8个方向的拉伸和移动处理 标签基元实现3个方向的拉伸和移动 --- src/Bro.Common.Model/Helper/StaticHelper.cs | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/src/Bro.Common.Model/Helper/StaticHelper.cs b/src/Bro.Common.Model/Helper/StaticHelper.cs index 47bb257..0c5de62 100644 --- a/src/Bro.Common.Model/Helper/StaticHelper.cs +++ b/src/Bro.Common.Model/Helper/StaticHelper.cs @@ -250,5 +250,23 @@ collection.Move(collection.IndexOf(sortedList[i]), i); } } + + // 甯冨皵绫诲瀷杞崲涓烘暣鍨� + public static int ToInt(this object obj) + { + if (Convert.ToBoolean(obj) == true) + return 1; + else + return 0; + } + + // 鏁村瀷杞崲涓哄竷灏旂被鍨� + public static bool ToBool(this object obj) + { + if (Convert.ToInt32(obj) == 1) + return true; + else + return false; + } } } -- Gitblit v1.8.0