NSTableViewBinding.TestWindowController.add C# (CSharp) Method

add() private method

Ask the edit form to display itself to enter new record values
private add ( NSButton sender ) : void
sender NSButton /// A ///
return void
		partial void add (NSButton sender)
		{
				// setup the edit sheet controller if one hasn't been setup already
				if (myEditController == null)
					myEditController = new EditController();
				
				// ask our edit sheet for information on the record we want to add
				NSMutableDictionary newValues = myEditController.edit(null, this);

				if (!myEditController.Cancelled)
				{
					// add the new entry
					myContentArray.AddObject(newValues);
				}			
		}