MonoMobile.Views.BaseDialogViewSource.AccessoryButtonTapped C# (CSharp) Method

AccessoryButtonTapped() public method

public AccessoryButtonTapped ( UITableView tableView, NSIndexPath indexPath ) : void
tableView UITableView
indexPath NSIndexPath
return void
		public override void AccessoryButtonTapped(UITableView tableView, NSIndexPath indexPath)
		{
			var cell = GetCell(tableView, indexPath);
			foreach (var section in Sections.Values)
			{
				if (section.Views.ContainsKey(cell))
				{
					var views = section.Views[cell];

					foreach (var view in views)
					{
						var commandButtonView = view as ICommandButton;
						if (commandButtonView != null && commandButtonView.Command != null)
						{
							commandButtonView.Command.Execute(commandButtonView.CommandParameter);
						}
					}
				}
			}
		}