private void OnEventSelectedPage(OptionPageMonobjc aPage) { EventHandler <EventArgsOptionPage> del = EventSelectedPage; if (del != null) { del(this, new EventArgsOptionPage(aPage)); } }
public void TableViewSelectionDidChange(NSNotification aNotification) { NSTableView tableView = aNotification.Object.CastAs <NSTableView>(); NSIndexSet selectedIndexSet = tableView.SelectedRowIndexes; int index = (int)selectedIndexSet.FirstIndex; OptionPageMonobjc page = iPages[index]; OnEventSelectedPage(page); }
public EventArgsOptionPage(OptionPageMonobjc aPage) : base() { Page = aPage; }