2 using System.Collections.Generic;
5 namespace ElmSharp.Wearable
7 public class MoreOptionItem
9 const string MainTextPartName = "selector,main_text";
10 const string SubTextPartName = "selector,sub_text";
11 const string IconPartName = "item,icon";
26 if (_handle == value) return;
28 if (_mainText != null)
29 Interop.Eext.eext_more_option_item_part_text_set(Handle, MainTextPartName, _mainText);
31 Interop.Eext.eext_more_option_item_part_text_set(Handle, SubTextPartName, _subText);
33 Interop.Eext.eext_more_option_item_part_content_set(Handle, IconPartName, _icon);
37 public MoreOptionItem()
42 public string MainText
46 if (_mainText == value) return;
48 if (Handle != IntPtr.Zero)
50 Interop.Eext.eext_more_option_item_part_text_set(Handle, MainTextPartName, _mainText);
64 if (_subText == value) return;
66 if (Handle != IntPtr.Zero)
68 Interop.Eext.eext_more_option_item_part_text_set(Handle, SubTextPartName, _subText);
82 if (_icon == value) return;
84 if (Handle != IntPtr.Zero)
86 Interop.Eext.eext_more_option_item_part_content_set(Handle, IconPartName, _icon);