コード例 #1
0
		void Initialize ()
		{
			findBarController = new FindBarExtraordinaireController ();
			IsSwipeEnabled = NSEvent.IsSwipeTrackingFromScrollEventsEnabled;
			FinishedLoad += (sender, e) => SetupFindBar (MainFrame.FrameView.DocumentView.EnclosingScrollView);
			findBarController.View.FindTextChanged += (sender, e) => InternalPerformFinderAction (NSTextFinderAction.SetSearchString);
			findBarController.View.CloseFindPanel += (sender, e) => InternalPerformFinderAction (NSTextFinderAction.HideFindInterface);
		}
コード例 #2
0
		void Initialize ()
		{
			// The initializations we do here are Lion-specific
			if (!AppDelegate.IsOnLionOrBetter)
				return;
			findBarController = new FindBarExtraordinaireController ();
			IsSwipeEnabled = NSEvent.IsSwipeTrackingFromScrollEventsEnabled;
			FinishedLoad += (sender, e) => SetupFindBar (MainFrame.FrameView.DocumentView.EnclosingScrollView);
			findBarController.View.FindTextChanged += (sender, e) => InternalPerformFinderAction (NSTextFinderAction.SetSearchString);
			findBarController.View.CloseFindPanel += (sender, e) => InternalPerformFinderAction (NSTextFinderAction.HideFindInterface);
		}
コード例 #3
0
 void Initialize()
 {
     // The initializations we do here are Lion-specific
     if (!AppDelegate.IsOnLionOrBetter)
     {
         return;
     }
     findBarController = new FindBarExtraordinaireController();
     IsSwipeEnabled    = NSEvent.IsSwipeTrackingFromScrollEventsEnabled;
     FinishedLoad     += (sender, e) => SetupFindBar(MainFrame.FrameView.DocumentView.EnclosingScrollView);
     findBarController.View.FindTextChanged += (sender, e) => InternalPerformFinderAction(NSTextFinderAction.SetSearchString);
     findBarController.View.CloseFindPanel  += (sender, e) => InternalPerformFinderAction(NSTextFinderAction.HideFindInterface);
 }