private void Add_Click(object sender, RoutedEventArgs e)
        {
            EditWindow ew = new EditWindow(false)
            {
                Owner = this
            };

            ew.ShowDialog();
        }
 private void Edit_Click(object sender, RoutedEventArgs e)
 {
     if (vm.SelectedPopulation == null)
     {
         MessageBox.Show("Please select a city to edit");
     }
     else
     {
         EditWindow ew = new EditWindow(true)
         {
             Owner = this
         };
         ew.ShowDialog();
     }
 }