private void MemberDogsButton_Click( object sender, EventArgs e ) { var member = CurrentMember; if( member == null ) return; using( var dlg = new DogsForm( CurrentMember, false ) ) { dlg.LoadDogs(); dlg.ShowDialog( this ); } }
private void DogsOverViewToolStripMenuItem_Click( object sender, EventArgs e ) { using( var dlg = new DogsForm( false ) ) { dlg.ShowDialog( this ); } }
private Dog SelectDog() { Dog dog = null; using( var dlg = new DogsForm( true ) ) { if( dlg.ShowDialog( this ) == DialogResult.OK ) dog = dlg.SelectedDog; } return dog; }