Ejemplo n.º 1
0
        public void ShowText(NSWindow parent, string title, string data)
        {
            WindowTextViewerController textViewer = new WindowTextViewerController();

            Engine.WindowsOpen.Add(textViewer);
            textViewer.Title = title;
            textViewer.Body  = data;
            textViewer.ShowWindow(parent);
        }
Ejemplo n.º 2
0
 public override void OnShowText(string title, string data)
 {
     if (MainWindow != null)
     {
         new NSObject().InvokeOnMainThread(() =>
         {
             WindowTextViewerController textViewer = new WindowTextViewerController();
             WindowsOpen.Add(textViewer);
             textViewer.Title = title;
             textViewer.Body  = data;
             textViewer.ShowWindow(MainWindow.Window);
         });
     }
 }
Ejemplo n.º 3
0
 public override void OnShowText(string title, string data)
 {
     if (MainWindow != null)
     {
         new NSObject().InvokeOnMainThread(() =>
             {
                 WindowTextViewerController textViewer = new WindowTextViewerController ();
                 WindowsOpen.Add (textViewer);
                 textViewer.Title = title;
                 textViewer.Body = data;
                 textViewer.ShowWindow (MainWindow.Window);
             });
     }
 }