private void btnAdd_Click(object sender, EventArgs e)
 {
     if (AddButtonPressed != null)
     {
         AddButtonPressed.Invoke();
     }
 }
        private void OnAddButtonPressed(BaseButton.ButtonEventArgs obj)
        {
            var selected = EntryItemList.GetSelected().ToArray();

            // Nothing to do here!
            if (selected.Length == 0)
            {
                return;
            }

            var comp = selected[0];

            // This shouldn't really happen.
            if (comp.Text == null)
            {
                return;
            }

            AddButtonPressed?.Invoke(new AddButtonPressedEventArgs(comp.Text));
        }
Beispiel #3
0
 public void PressAddButton()
 {
     AddButtonPressed.Invoke();
 }