Ejemplo n.º 1
0
		protected virtual void OnFamilyMoreView_SelectNewNote (object sender, NoteArgs e)
		{
			if (SelectNewNote != null)
			{
				SelectNewNote(this, e);
			}
		}
Ejemplo n.º 2
0
		protected virtual void OnContentNameView_SelectNewNote (object sender, NoteArgs e)
		{
			if (SelectNewNote != null)
			{
				SelectNewNote(this, e);
			}
		}
Ejemplo n.º 3
0
	protected void OnSelectNewNote(object sender, NoteArgs e)
	{
		NoteListDialog listDialog = new NoteListDialog();
		
		if (sender is Gtk.Dialog)
		{
			listDialog.TransientFor = (Gtk.Window)sender;
		}
		else
		{
			listDialog.TransientFor = this;
		}
		
		listDialog.Database = _database;
		listDialog.Record = null;
		
		listDialog.Modal = true;
		
		int response = listDialog.Run();
		
		if (response == (int)Gtk.ResponseType.Apply)
		{
			e.Note = listDialog.Note;
		}
		else if (response == (int)Gtk.ResponseType.Ok)
		{
			// Create new note
			GedcomNoteRecord note = new GedcomNoteRecord(_database);
			
			e.Note = note;
		}
		
		listDialog.Destroy();
	}
Ejemplo n.º 4
0
		protected virtual void OnScrapBookList_SelectNewNote (object sender, NoteArgs e)
		{
			if (SelectNewNote != null)
			{
				SelectNewNote(this, e);
			}
		}
Ejemplo n.º 5
0
		protected virtual void OnSourceCitationView_SelectNewNote (object sender, NoteArgs e)
		{
			if (SelectNewNote != null)
			{
				SelectNewNote(this, e);
			}
		}
Ejemplo n.º 6
0
		protected virtual void OnAddNoteButton_Clicked (object sender, System.EventArgs e)
		{
			if (SelectNewNote != null)
			{
				NoteArgs args = new NoteArgs();
				
				SelectNewNote(this, args);
				
				if (args.Note != null)
				{
					DoAddNote(args.Note);
				}
			}
		}
Ejemplo n.º 7
0
		protected virtual void OnSubmitterView_SelectNewNote (object sender, NoteArgs e)
		{
			if (SelectNewNote != null)
			{
				SelectNewNote(this, e);
			}
		}
Ejemplo n.º 8
0
		protected virtual void OnIndividualView_SelectNewNote (object sender, NoteArgs e)
		{
			if (SelectNewNote != null)
			{
				SelectNewNote(this, e);
			}
		}
Ejemplo n.º 9
0
		protected virtual void OnNotesView_SelectNewNote (object sender, NoteArgs e)
		{
			SaveView();
			
			if (SelectNewNote != null)
			{
				SelectNewNote(this, e);
			}
		}
Ejemplo n.º 10
0
		protected virtual void OnFactDetails_SelectNewNote (object sender, NoteArgs e)
		{
			if (SelectNewNote != null)
			{
				SelectNewNote(this, e);
			}
		}