예제 #1
0
        private void DogEventsOverviewToolStripMenuItem_Click( object sender, EventArgs e )
        {
            using( var dlg = new DogEventsForm( false ) )
            {
                dlg.ShowDialog( this );
            }

            Program.Context.Load();
            UI();
        }
예제 #2
0
        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();
        }