diff options
Diffstat (limited to 'MyDocument.cs')
-rw-r--r-- | MyDocument.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/MyDocument.cs b/MyDocument.cs index 48a652c..49a7554 100644 --- a/MyDocument.cs +++ b/MyDocument.cs @@ -46,6 +46,16 @@ namespace macdoc return "Mono Documentation Browser"; } } + + public void LoadWithSearch (string searchTerm) + { + if (!string.IsNullOrEmpty (searchTerm)) { + toolbarSearchEntry.StringValue = searchTerm; + tabSelector.SelectAt (2); + Search (searchTerm); + Console.WriteLine ("Searched: '{0}'", searchTerm); + } + } public override bool ReadFromUrl (NSUrl url, string typeName, out NSError outError) { |