public void OnOpenFile(Id menuItem)
 {
     try {
         initializePlayer();
         //
         NSOpenPanel panel      = Monobjc.Cocoa.NSOpenPanel.OpenPanel;
         int         returnCode = panel.RunModalForTypes(NSArray.ArrayWithObjects((NSString)"avi",
                                                                                  new object[] { (NSString)"mp3", (NSString)"mp4", (NSString)"mpg", null }));
         if (returnCode == NSOpenPanel.NSOKButton)
         {
             string fileToOpen = panel.Filename;
             FilePathInput.StringValue = fileToOpen;
             fileOpened = false;
             // start playing!
             OnPlayClick(menuItem);
         }
     } catch (Exception exc) {
         if (logger.IsErrorEnabled)
         {
             logger.Error("Cannot open file", exc);
         }
     }
 }