private void BackButton_Click(object sender, RoutedEventArgs e)
        {
            User_ControlPanel user_ControlPanel = new User_ControlPanel(Left, Top);

            user_ControlPanel.Show();
            Close();
        }
        private void DeleteButton_Click(object sender, RoutedEventArgs e)
        {
            ReservationComboBoxInfo temp = (ReservationComboBoxInfo)reservationsComboBox.SelectedItem;

            if (temp == null)
            {
                System.Windows.MessageBox.Show("Please select reservation.");
                return;
            }
            Reservation resToDelete = new Reservation(CurrentlyLoggedUser.currentlyLoggedUserId, temp.carId, temp.rentedFrom, temp.rentedTo);

            ReservationCalendar.deleteReservationFromList(resToDelete);

            System.Windows.MessageBox.Show("Reservation deleted!");
            User_ControlPanel user_ControlPanel = new User_ControlPanel(Left, Top);

            user_ControlPanel.Show();
            Close();
        }
        private void Login_Button_Click(object sender, RoutedEventArgs e)
        {
            string inputPassword = password.Password;
            string inputUsername = username.Text;

            bool switcher = true;

            if (string.IsNullOrEmpty(inputUsername))
            {
                System.Windows.MessageBox.Show("Username box is empty");
                switcher = false;
            }
            else if (string.IsNullOrEmpty(inputPassword))
            {
                System.Windows.MessageBox.Show("Password box is empty");
                switcher = false;
            }

            if (switcher)
            {
                if (AdminList.isOnTheList(inputUsername, inputPassword))
                {
                    System.Windows.MessageBox.Show("You are successfully logged in as an admin!");
                    Admin_ControlPanel admin_ControlPanel = new Admin_ControlPanel(this.Left, this.Top);
                    admin_ControlPanel.Show();
                    Close();
                }
                else if (UserList.isOnTheList(inputUsername, inputPassword))
                {
                    CurrentlyLoggedUser.InitilizeCurrentyLoggedUser(UserList.GetId(inputUsername, inputPassword));
                    System.Windows.MessageBox.Show("You are successfully logged in as an user!");
                    User_ControlPanel user_ControlPanel = new User_ControlPanel(this.Left, this.Top);
                    user_ControlPanel.Show();
                    Close();
                }
                else
                {
                    System.Windows.MessageBox.Show("Account does not exist! Click REGISTER button in order to register.");
                }
            }
        }