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.SelectedCity != null)
     {
         EditWindow ew = new EditWindow(true)
         {
             Owner = this
         };
         ew.ShowDialog();
     }
     else
     {
         MessageBox.Show(SELECT_CITY_MSG);
     }
 }