old mode 100644
new mode 100755
| | |
| | | {
|
| | | if (this.dicDeviceModelIdEnum.ContainsKey(strKey) == false)
|
| | | {
|
| | | return null;
|
| | | return new DeviceNameContent();
|
| | | }
|
| | | return this.dicDeviceModelIdEnum[strKey];
|
| | | }
|
| | |
| | | System.IO.StreamReader streamReader = null;
|
| | | var listText = new List<string>();
|
| | | try
|
| | | { |
| | | #if iOS |
| | | string textFile = Foundation.NSBundle.MainBundle.PathForResource("DeviceName.ini", null); |
| | | streamReader = new System.IO.StreamReader(textFile, Encoding.UTF8); |
| | | {
|
| | | #if iOS
|
| | | string textFile = Foundation.NSBundle.MainBundle.PathForResource("DeviceName.ini", null);
|
| | | streamReader = new System.IO.StreamReader(textFile, Encoding.UTF8);
|
| | | string text;
|
| | | while ((text = streamReader.ReadLine()) != null)
|
| | | {
|
| | | listText.Add(text.Trim());
|
| | | }
|
| | | return listText; |
| | | #endif |
| | | #if Android |
| | | return listText;
|
| | | #endif
|
| | | #if Android
|
| | | var stream = Application.Activity.Assets.Open("DeviceName.ini");
|
| | | streamReader = new System.IO.StreamReader(stream, Encoding.UTF8);
|
| | | string text;
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | #endregion
|
| | | #endregion
|
| | | }
|
| | |
|
| | | #region ■ 自定义设备类型_________________________
|
| | | #region ■ 自定义设备类型_________________________
|
| | |
|
| | | /// <summary>
|
| | | /// <para>设备的具体【设备类型】,变量名可以作为【设备类型】图片,这个值是瞎写的,没什么特殊意义</para>
|
| | |
| | | A干接点 = 16,
|
| | | }
|
| | |
|
| | | #endregion
|
| | | #endregion
|
| | | }
|