private void AddClick(object sender, RoutedEventArgs e)
        {
            switch (DataBase_TabControl.SelectedIndex)
            {
            case 0:
            {
                NewMarker newMarker = new NewMarker("admin");
                newMarker.ShowDialog();
                Marker_DataGrid.ItemsSource = bll.GetAllMarkers().DefaultView;
            }
            break;

            case 1:
            {
                RegisterNewUser registerNewUser = new RegisterNewUser();
                registerNewUser.ShowDialog();
                Logins_DataGrid.ItemsSource = bll.GetAllLogins().DefaultView;
            }
            break;

            case 2:
            {
                NewMarkerType newMarkerType = new NewMarkerType();
                newMarkerType.ShowDialog();
                MarkerType_DataGrid.ItemsSource = bll.GetAllMarkerTypes().DefaultView;
            }
            break;

            case 3:
            {
                NewCity newcity = new NewCity();
                newcity.ShowDialog();
                City_DataGrid.ItemsSource = bll.GetAllCitiesCollection().DefaultView;
            }
            break;

            default:
                break;
            }
        }
        private void OpenNewMarker(object sender, RoutedEventArgs e)
        {
            NewMarker nm          = new NewMarker(LoginName);
            string    loginStatus = bll.GetLoginStatusOfUser(LoginName);

            if (LoginName != string.Empty)
            {
                nm.IsAdminUser = false;
                if (loginStatus == "admin")
                {
                    nm.IsAdminUser = true;
                    nm.MarkerType_combo.Visibility  = Visibility.Visible;
                    nm.MarkerType_combo.ItemsSource = bll.GetAllPlaceTypes();
                }
                nm.ShowDialog();
            }
            else
            {
                MessageBox.Show("You have to log in.");
            }
            //bool? res = nm.ShowDialog();
            //if (res.HasValue && res.Value)
            //{
            //    if (LoginName != string.Empty)
            //    {
            //        //Maybe new Task?
            //        AddUserPlace(nm.DataContext as MarkerContext);
            //    }
            //    AddNewMarkerToMap((nm.DataContext as MarkerContext).City, (nm.DataContext as MarkerContext).Street, (nm.DataContext as MarkerContext).StreetNumber, (nm.DataContext as MarkerContext).MyImageSource, (nm.DataContext as MarkerContext).Description, (nm.DataContext as MarkerContext).Contacts.ToArray());
            //}
            //else
            //{

            //}
            //nm.ShowDialog();
            //this.IsEnabled = false;
        }