private async void Unlock(object obj)
        {
            LoaderManager.Instance.ShowLoader();
            await Task.Run(() =>
            {
                SelectedCard.IsActive = true;
                _cards.Remove(SelectedCard);
                DbManager.SaveAccount(SelectedCard);
                DbManager.AddATMManagerAction(new ATMManagerAction(StaticManager.CurrentManager,
                                                                   StaticManager.CurrentAtm, "UnBlockCard"));
                DbManager.SaveATM(StaticManager.CurrentAtm);
            });

            LoaderManager.Instance.HideLoader();
            NavigationManager.Instance.Navigate(ModesEnum.BlockedCards);
        }
        private async void PutMoney(object obj)
        {
            LoaderManager.Instance.ShowLoader();
            await Task.Run(() =>
            {
                StaticManager.CurrentAtm.Banknote50  = _fifty;
                StaticManager.CurrentAtm.Banknote100 = _hundred;
                StaticManager.CurrentAtm.Banknote200 = _twoHundred;
                StaticManager.CurrentAtm.Banknote500 = _fiveHundred;

                DbManager.AddATMManagerAction(new ATMManagerAction(StaticManager.CurrentManager, StaticManager.CurrentAtm, "AddMoney"));
                DbManager.SaveATM(StaticManager.CurrentAtm);
            });

            LoaderManager.Instance.HideLoader();
            MessageBox.Show("Operation was successful!");
            NavigationManager.Instance.Navigate(ModesEnum.ManagerMenu);
        }
        private async void NextImplementation(object obj)
        {
            bool correct = false;

            LoaderManager.Instance.ShowLoader();
            await Task.Run(() =>
            {
                StaticManager.Attempts = StaticManager.Attempts - 1;
                if ((StaticManager.CurrentCard != null && StaticManager.CurrentCard.CheckPassword(Pin)) ||
                    (StaticManager.CurrentManager != null && StaticManager.CurrentManager.CheckPassword(Pin)))
                {
                    correct = true;
                }

                else if (StaticManager.CurrentCard != null && StaticManager.Attempts == 0)
                {
                    StaticManager.CurrentCard.IsActive = false;
                    DbManager.SaveAccount(StaticManager.CurrentCard);
                }
                else if (StaticManager.CurrentManager != null && StaticManager.Attempts == 0)
                {
                    StaticManager.CurrentAtm.Status = false;
                }


                if (StaticManager.CurrentCard != null)
                {
                    DbManager.AddATMAccountAction(new ATMAccountAction(StaticManager.CurrentAtm,
                                                                       StaticManager.CurrentCard, "Authentication"));
                    DbManager.SaveATM(StaticManager.CurrentAtm);
                }
                else
                {
                    DbManager.AddATMManagerAction(new ATMManagerAction(StaticManager.CurrentManager,
                                                                       StaticManager.CurrentAtm, "Authentication"));
                    DbManager.SaveATM(StaticManager.CurrentAtm);
                }
            });

            LoaderManager.Instance.HideLoader();

            if (!StaticManager.CurrentAtm.Status)
            {
                NavigationManager.Instance.Navigate(ModesEnum.CardPin);
            }
            else if (!correct)
            {
                if (StaticManager.CurrentCard != null)
                {
                    MessageBox.Show("Your have " + StaticManager.Attempts + " attempts!", "Wrong PIN!",
                                    MessageBoxButtons.OK,
                                    MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
                }
                ModesEnum mode = (StaticManager.Attempts == 0 ? ModesEnum.CardNumber : ModesEnum.CardPin);
                NavigationManager.Instance.Navigate(mode);
            }
            else if (StaticManager.CurrentCard != null)
            {
                NavigationManager.Instance.Navigate(ModesEnum.ClientMenu);
            }
            else if (StaticManager.CurrentManager != null)
            {
                NavigationManager.Instance.Navigate(ModesEnum.ManagerMenu);
            }
        }