Exemplo n.º 1
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            var viewHolder = holder as ListItemViewHolder;

            viewHolder.Title.Text           = _events[position].GetTime();
            viewHolder.SubTitle1.Text       = _events[position].GetSwimmerName();
            viewHolder.SubTitle1.Visibility = ViewStates.Visible;
            viewHolder.SubTitle2.Text       = _events[position].GetSwimmerAge();
            viewHolder.SubTitle2.Visibility = ViewStates.Visible;
            viewHolder.SubTitle3.Text       = _events[position].GetCity();
            viewHolder.SubTitle3.Visibility = ViewStates.Visible;
            viewHolder.SubTitle4.Text       = _events[position].GetDistance();
            viewHolder.SubTitle4.Visibility = ViewStates.Visible;
            viewHolder.SubTitle5.Text       = _events[position].GetStyle();
            viewHolder.SubTitle5.Visibility = ViewStates.Visible;
            viewHolder.SubTitle7.Text       = _events[position].GetDate();
            viewHolder.SubTitle7.Visibility = ViewStates.Visible;



            viewHolder.OnItemClicked += (args, e) =>
            {
                OnItemClicked?.Invoke(this, _events[position]);
            };
        }
Exemplo n.º 2
0
 public void OnClickedBuy(FlexItem2ViewModel FlexItem2ViewModel)
 {
     if (OnItemClicked != null)
     {
         OnItemClicked.Invoke(this, FlexItem2ViewModel);
     }
 }
Exemplo n.º 3
0
        }                                                                          //usar esse


        protected async Task OnToolButtonClicked(EToolbarItem eToolbarItem)
        {
            if (OnItemClicked == null)
            {
                return;
            }
            await OnItemClicked?.Invoke(eToolbarItem);
        }
        /// <summary>
        /// Catch Click Item Event.
        /// </summary>
        private void AdapterListView_ItemSelectionHandler(object sender, ListViewItemSelectionChangedEventArgs args)
        {
            if (!args.IsSelected)
            {
                return;
            }
            var index = args.ItemIndex;
            var item  = InternalList[index];

            OnItemClicked?.Invoke(item);
        }
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            var viewHolder = holder as ListItemViewHolder;

            viewHolder.Title.Text           = _swimmers[position].GetName();
            viewHolder.SubTitle1.Text       = _swimmers[position].GetCoachName();
            viewHolder.SubTitle1.Visibility = ViewStates.Visible;
            viewHolder.SubTitle2.Text       = _swimmers[position].GetSex();
            viewHolder.SubTitle2.Visibility = ViewStates.Visible;

            viewHolder.OnItemClicked += (args, e) =>
            {
                OnItemClicked?.Invoke(this, _swimmers[position]);
            };
        }
Exemplo n.º 6
0
        /// <summary>
        /// User clicked "Show sth" in flyout menu
        /// </summary>
        private static void FlyoutButton_Click(object sender, RoutedEventArgs e)
        {
            var selectedLesson      = Lesson.GetLessonFromLessonGrid(_clickedLessonGrid, _timeTable);
            var buttonContentString = string.Empty;

            try
            {
                buttonContentString = ((TextBlock)((Button)sender).ContentTemplateRoot).Text ?? "";
                int typeOfClickedButton = buttonContentString.Contains("salę") ? 0 :
                                          buttonContentString.Contains("przedmiot") ? 1 : buttonContentString.Contains("nauczyciela") ? 2 : -1;

                OnItemClicked?.Invoke(selectedLesson, (ButtonClickedType)typeOfClickedButton, _clickedLessonId);
            }
            catch
            {
                return;
            }
        }
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            var viewHolder = holder as ListItemViewHolder;

            viewHolder.Title.Text           = _events[position].GetDescription();
            viewHolder.SubTitle1.Text       = _events[position].GetCity();
            viewHolder.SubTitle1.Visibility = ViewStates.Visible;
            viewHolder.SubTitle2.Text       = _events[position].GetStartDate();
            viewHolder.SubTitle2.Visibility = ViewStates.Visible;
            viewHolder.SubTitle8.Text       = _events[position].GetEndDate();
            viewHolder.SubTitle8.Visibility = ViewStates.Visible;
            viewHolder.SubTitle4.Text       = _events[position].GetLevel();
            viewHolder.SubTitle4.Visibility = ViewStates.Visible;

            viewHolder.OnItemClicked += (args, e) =>
            {
                OnItemClicked?.Invoke(this, _events[position]);
            };
        }
Exemplo n.º 8
0
 /// <summary>
 /// Called when user clicks on an item.
 /// </summary>
 /// <param name="item">The item.</param>
 public void OnClickItem(VisjectCMItem item)
 {
     Hide();
     OnItemClicked?.Invoke(item, _selectedBox);
 }
Exemplo n.º 9
0
 private void ToggleClicked(ItemToggle toggle)
 {
     OnItemClicked?.Invoke(toggle.wearableItem.id);
 }
 private void ItemView_Click(object sender, EventArgs e)
 {
     OnItemClicked?.Invoke(this, null);
 }
Exemplo n.º 11
0
 public void ItemClicked()
 {
     OnItemClicked?.Invoke(_itemDragHandler.DragedItem);
 }
Exemplo n.º 12
0
        private void listView_ItemClick(object sender, ItemClickEventArgs e)
        {
            var assignment = e.ClickedItem as Model.Assignment;

            OnItemClicked?.Invoke(sender, new AssignmentItemClickEventArgs(assignment.course_id, assignment.ca_id));
        }
Exemplo n.º 13
0
 public void OnSelected()
 {
     Debug.Log($"Try to connect to: {TextField.text}");
     this.GetComponent <Button>().interactable = false;
     OnItemClicked?.Invoke(IPAddress, Port);
 }