MonoMobile.Views.DataContextBinder.InsertRow C# (CSharp) 메소드

InsertRow() 개인적인 메소드

private InsertRow ( MonoMobile.Views.Section section, int row, object item, UITableViewRowAnimation animation = UITableViewRowAnimation.Fade ) : void
section MonoMobile.Views.Section
row int
item object
animation UITableViewRowAnimation
리턴 void
		private void InsertRow(Section section, int row, object item, UITableViewRowAnimation animation = UITableViewRowAnimation.Fade)
		{
			AddPropertyChangedHandler(item);

			section.DataContext.Insert(row, item); 
			
			if (Controller == MonoMobileApplication.CurrentViewController)
			{		
				var indexPaths = new NSIndexPath[] { NSIndexPath.FromRowSection(row, section.Index) };
				InvokeOnMainThread(()=> Controller.TableView.InsertRows(indexPaths, animation));
			}
		}