7
public class RemoteControl : RemoteControlProxy
9
private NoteManager note_manager;
11
public RemoteControl (NoteManager mgr)
16
public override bool DisplayNote (string uri)
20
note = note_manager.FindByUri (uri);
24
note.Window.Present ();
28
public override string FindNote (string linked_title)
31
note = note_manager.Find (linked_title);
32
return (note == null) ? "" : note.Uri;
35
public override string CreateNote ()
38
note = note_manager.Create ();
42
public override string CreateNamedNote (string linked_title)
46
note = note_manager.Find (linked_title);
50
note = note_manager.Create (linked_title);
54
public override bool DeleteNote (string uri)
58
note = note_manager.FindByUri (uri);
62
note_manager.Delete (note);