private void OnAddGoal(object obj)
        {
            var w = new Window();

            w.Width   = 400;
            w.Height  = 250;
            w.Title   = "Add new goal";
            w.Content = new GoalView();
            var vm = new GoalViewModel();

            w.DataContext = vm;
            if (w.ShowDialog().GetValueOrDefault())
            {
                Goals.Add(new Goal()
                {
                    GoalType = vm.GoalType,
                    Minute   = vm.Minute,
                    Scorer   = vm.Scorer
                });
            }
        }
        private void OnAddGoal(object obj)
        {
            var w = new Window();

            w.Width  = 400;
            w.Height = 260;
            w.Title  = "Add new goal";
            w.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            w.Content = new GoalView();
            var vm = new GoalViewModel();

            w.DataContext = vm;
            w.Owner       = Application.Current.MainWindow;
            if (w.ShowDialog().GetValueOrDefault())
            {
                Goals.Add(new Goal()
                {
                    GoalType = vm.GoalType,
                    Minute   = vm.Minute,
                    Scorer   = vm.Scorer
                });
            }
        }