private void DogEventsOverviewToolStripMenuItem_Click( object sender, EventArgs e ) { using( var dlg = new DogEventsForm( false ) ) { dlg.ShowDialog( this ); } Program.Context.Load(); UI(); }
private void DogEventSelectToolStripMenuItem_Click( object sender, EventArgs e ) { using( var dlg = new DogEventsForm( true ) ) { dlg.SetSelectedEvent( SelectedDogEvent ); if( dlg.ShowDialog( this ) == DialogResult.OK ) { SelectedDogEvent = dlg.SelectedEvent; Program.Context.Save(); } } Program.Context.Load(); UI(); }