void SetVisibleMoreOption(bool visible)
 {
     if (_moreOption == null)
     {
         _moreOption          = new ElmSharp.Wearable.MoreOption(_box);
         _moreOption.Clicked += OnMoreOptionClicked;
         _moreOption.Opened  += ToolbarOpened;
         _moreOption.Closed  += ToolbarClosed;
         _box.PackEnd(_moreOption);
     }
     if (visible)
     {
         _moreOption.Show();
     }
     else
     {
         _moreOption.Hide();
     }
 }
Example #2
0
 /// <summary>
 /// Creates and initializes a new instance of the MoreOptionList class.
 /// </summary>
 /// <param name="owner">The object of more option.</param>
 public MoreOptionList(MoreOption owner)
 {
     Owner = owner;
     Items = new List <MoreOptionItem>();
 }