private void SignUpMethod(object param)
        {
            string password      = (param as PasswordBox).Password;
            Regex  employeeRegex = new Regex(@"@burtanica.ro$");

            if (employeeRegex.Match(email) != Match.Empty)
            {
                MessageBox.Show("Only managers can have this email!");
            }
            else
            {
                UserLogic user = new UserLogic();
                if (!user.SignUp(FirstNameProperty, LastNameProperty, PhoneNumber, EmailProperty, AddressProperty, password))
                {
                    MessageBox.Show("This email is taken!");
                    EmailProperty = "";
                }
                else
                {
                    var query = (from users in restaurant.Users
                                 where users.Email.Equals(EmailProperty)
                                 select users).First();
                    SignInViewModel.activeUser     = query;
                    StartWindowViewModel.stateUser = true;
                    MenuForAccount menu = new MenuForAccount();
                    App.Current.MainWindow.Close();
                    App.Current.MainWindow = menu;
                    menu.Show();
                }
            }
        }
        private void SeeOrderHistoryMethod(object param)
        {
            MenuForAccount menuWindow = new MenuForAccount();

            App.Current.MainWindow.Close();
            App.Current.MainWindow = menuWindow;
            menuWindow.Show();
        }
 private void BackMethod(object param)
 {
     if (StartWindowViewModel.stateUser == false)
     {
         MenuView startWindow = new MenuView();
         App.Current.MainWindow.Close();
         App.Current.MainWindow = startWindow;
         startWindow.Show();
     }
     else
     {
         MenuForAccount startWindow = new MenuForAccount();
         App.Current.MainWindow.Close();
         App.Current.MainWindow = startWindow;
         startWindow.Show();
     }
 }