예제 #1
0
 public NotesWindowNotesDatasource(NotesWindowController controller)
 {
     if (controller == null)
     {
         throw new ArgumentNullException("controller");
     }
     MyNotesWindowController = controller;
 }
예제 #2
0
 private void LoadDashboardWindow()
 {
     if (controller == null)
     {
         controller = new NotesWindowController();
     }
     controller.Window.MakeKeyAndOrderFront(this);
 }
예제 #3
0
 partial void OpenDashboard(NSObject sender)
 {
     if (controller == null)
     {
         controller = new NotesWindowController();
     }
     controller.Window.MakeKeyAndOrderFront(this);
 }
예제 #4
0
 /// <summary>
 /// Refreshs the notes window controller.
 /// Method refreshes the table in Notes Window, to update each time
 /// some notes are updated, deleted or added.
 /// </summary>
 public static void RefreshNotesWindowController()
 {
     if (controller == null)
     {
         controller = new NotesWindowController();
     }
     controller.UpdateNotesTable();
 }
예제 #5
0
        public override void FinishedLaunching(NSObject notification)
        {
            //moving from nibFinishedLoading may address a few issues with crashes.
            BuildDockMenuNotes();

            if (controller == null)
            {
                controller = new NotesWindowController();
            }
            controller.Window.MakeMainWindow();
        }
예제 #6
0
		/// <summary>
		/// Loads the dashboard window.
		/// </summary>
		private void LoadDashboardWindow () {
			if (controller == null)
				controller = new NotesWindowController ();
			controller.Window.MakeKeyAndOrderFront (this);
		}
예제 #7
0
		/// <summary>
		/// Opens the dashboard.
		/// </summary>
		/// <param name="sender">Sender.</param>
		partial void OpenDashboard (NSObject sender) {
			if (controller == null)
				controller = new NotesWindowController ();
			controller.Window.MakeKeyAndOrderFront (this);
		}
예제 #8
0
        	/// <summary>
        	/// Refreshs the notes window controller.
        	/// Method refreshes the table in Notes Window, to update each time
		/// some notes are updated, deleted or added.
		/// </summary>
		public static void RefreshNotesWindowController () {
		    if (controller == null)
				controller = new NotesWindowController();
            		controller.UpdateNotesTable();
            		controller.UpdateNotebooksTable();
		}
예제 #9
0
		/// <summary>
		/// It is called when the application has finished launching
		/// </summary>
		/// <param name="notification">Notification.</param>
		public override void FinishedLaunching (NSObject notification) {
			//moving from nibFinishedLoading may address a few issues with crashes.
			BuildDockMenuNotes ();

			if (controller == null)
				controller = new NotesWindowController();
			controller.Window.MakeMainWindow();
		}
		public NotesWindowNotesDatasource (NotesWindowController controller) {
			if (controller == null)
				throw new ArgumentNullException ("controller");
			MyNotesWindowController = controller;
		}