コード例 #1
0
        public async Task <IActionResult> DeleteAccount(DeleteAccount delete)
        {
            logger.LogInformation("AccountController DeleteAccount called (Post)");

            if (ModelState.IsValid)
            {
                var user = await userManager.GetUserAsync(this.User);

                var result = await signInManager.PasswordSignInAsync(user.Email, delete.Password, false, false);

                if (result.Succeeded)
                {
                    var result2 = await userManager.DeleteAsync(user);

                    if (result2.Succeeded)
                    {
                        await Logout();

                        return(RedirectToAction("index", "home"));
                    }
                    else
                    {
                        foreach (var error in result2.Errors)
                        {
                            //Show in register view
                            ModelState.AddModelError("", error.Description);
                        }
                    }
                }
            }
            return(View(delete));
        }
コード例 #2
0
 private void Pb_Admin_DeleteAccount_Click(object sender, EventArgs e)
 {
     Cursor.Current = Cursors.WaitCursor;
     _ = new DeleteAccount(TB_Admin_NewAccount);
     _ = new LoadAccess(comBox_AdminAccess);
     Cursor.Current = Cursors.Default;
 }
コード例 #3
0
        public async Task DeleteAccountAsync(DeleteAccount command)
        {
            //temporary no removing AccountAvailable
            await this.DeactivateAccountAsync(command.Id.ToString());

            /*
             * var transactions = this.Context.Transactions.Where(x => x.AccountId == id).ToList();
             *
             * if(IsSubCardAccount(id))
             * {
             * var parentAccountId = GetParentAccountId(id).Value;
             * foreach (var transaction in transactions)
             * {
             *     transaction.AccountId = parentAccountId;
             * }
             * }
             * else
             * {
             * this.Context.RemoveRange(transactions);
             * }
             *
             *
             * this.Context.SaveChanges();
             * var account = await this.Context.Accounts.Where(x => x.Id == id).FirstOrDefaultAsync();
             * this.Context.Remove<Account>(account);
             * this.Context.SaveChanges();
             */
        }
コード例 #4
0
        public void Handle(DeleteAccount message)
        {
            Account account = _session.Get <Account>(message.Id);

            account.DeleteAccount(message.Id, message.UserId);
            _session.Commit();
        }
コード例 #5
0
ファイル: Program.cs プロジェクト: mishrsud/Ximo
        private static void SimulateAccountProcessing(ICommandBus commandBus)
        {
            var newAccountId  = Guid.NewGuid();
            var createAccount = new CreateAccount(newAccountId, "Omar", @"Besiso", "ThoughtDesign",
                                                  RandomGenerator.GenerateRandomEmail());

            try
            {
                commandBus.Send(createAccount);

                //Simulate 6 snapshots
                for (var i = 0; i < 60; i++)
                {
                    var updateAccount = new UpdateAccountAddress(newAccountId, $"Test {i}", null, null, null, null,
                                                                 "Australia");
                    commandBus.Send(updateAccount);
                }

                var approveAccount = new ApproveAccount(newAccountId, "Omar Besiso");
                commandBus.Send(approveAccount);

                var deleteAccount = new DeleteAccount(newAccountId, "Testing");
                commandBus.Send(deleteAccount);

                var reinstateAccount = new ReinstateAccount(newAccountId);
                commandBus.Send(reinstateAccount);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
コード例 #6
0
ファイル: DeleteAccountTests.cs プロジェクト: SGmuwa/InWords
        public async void DeleteExistedAccount()
        {
            // arrange
            int userId  = 1;
            int otherId = 2;

            await using InWordsDataContext context = InWordsDataContextFactory.Create();
            await context.AddAccount(userId);

            await context.AddAccount(otherId);

            await context.SaveChangesAsync();

            // act
            var requestObject =
                new AuthorizedRequestObject <DeleteAccountRequest, Empty>(
                    new DeleteAccountRequest()
            {
                Text = "Delete me just for test"
            })
            {
                UserId = userId
            };

            var registration = new DeleteAccount(context);
            await registration.HandleRequest(requestObject).ConfigureAwait(false);

            // assert
            Assert.Single(context.Accounts);
            Assert.Equal(otherId, context.Accounts.First().AccountId);
        }
コード例 #7
0
        /// <summary>
        /// 删除用户
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void deleteAccount_Selected(object sender, RoutedEventArgs e)
        {
            var page = new DeleteAccount();

            page.UpdateShow(accountManager);
            framewPlane.NavigationService.Navigate(page);
            page.MakeLogEvent += page_MakeLogEvent;
        }
コード例 #8
0
        public async Task <ActionResult> Delete(Guid id)
        {
            var command = new DeleteAccount {
                Id = id
            };
            await _mediator.Send(command);

            return(NoContent());
        }
コード例 #9
0
ファイル: AccountService.cs プロジェクト: JFigue27/MDC
        public object Delete(DeleteAccount request)
        {
            var entity = request.ConvertTo <Account>();

            return(InTransaction(db =>
            {
                Logic.Remove(entity);
                return new CommonResponse();
            }));
        }
コード例 #10
0
ファイル: User.cs プロジェクト: yj1118/CodeArt-Framework
 public override void OnDeleted()
 {
     {
         var cmd = new DeleteAccount(this.Account.Id);
         cmd.Execute();
     }
     {
         var cmd = new DeleteVirtualDisk(this.Disk.Id);
         cmd.Execute();
     }
     base.OnDeleted();
 }
コード例 #11
0
        public void When(DeleteAccount message)
        {
            AccountIndexEntry entry;

            if (_index.TryRemove(message.UserId, out entry))
            {
                Sender.Tell(new AccountDeleted(entry));
            }
            else
            {
                Sender.Tell(new AccountDeletionFailed(message.UserId, new Exception("Couldn't bring myself to delete ya.")));
            }
        }
コード例 #12
0
        public async Task <IActionResult> DeleteAccountAsync()
        {
            var accountId = User.ReadClaimAsGuidValue("urn:codefliptodo:accountid");

            var deleteAccount = new DeleteAccount
            {
                AccountId = accountId
            };

            await _mediator.Send(deleteAccount);

            await _todoDatabaseContext.SaveChangesAsync();

            return(Ok("account deleted!"));
        }
コード例 #13
0
        public async Task <IHttpActionResult> DeteletAccount(int id)
        {
            bool check = await DeleteAccount.FuncDeleteAccount(id);

            ResponseMsg messages = new ResponseMsg();

            if (check)
            {
                messages.message = "Delete account successful.";
                return(Ok(messages));
            }
            else
            {
                return(BadRequest("Error deleted account."));
            }
        }
コード例 #14
0
        public ActionResult DeleteAccount(DeleteAccount deleteAccount)
        {
            if (deleteAccount.AccountToBeDeleted)
            {
                if (Context.User.Profile.Email != null)
                {
                    _userProfileService.DeleteProfile(Context.User.Profile);
                    _accountRepository.Logout();
                }

                return(Redirect(Context.Site.GetRootItem().Url()));
            }

            return(View(new DeleteAccount()
            {
                AccountToBeDeleted = true
            }));
        }
コード例 #15
0
ファイル: Program.cs プロジェクト: codeinpeace/Ximo-Sample
        private static void SimulateAccountProcessing(ICommandBus commandBus, IQueryProcessor queryProcessor)
        {
            for (int y = 0; y < 10; y++)
            {
                var newAccountId  = Guid.NewGuid();
                var createAccount = new CreateAccount(newAccountId, "Omar", @"Besiso", "ThoughtDesign",
                                                      RandomGenerator.GenerateRandomEmail());

                try
                {
                    commandBus.Send(createAccount);

                    //Simulate 2 snapshots
                    for (var i = 0; i < 10; i++)
                    {
                        var updateAccount = new UpdateAccountAddress(newAccountId, $"Test {i}", null, null, null, null,
                                                                     "Australia");
                        commandBus.Send(updateAccount);
                    }

                    var approveAccount = new ApproveAccount(newAccountId, "Omar Besiso");
                    commandBus.Send(approveAccount);

                    var deleteAccount = new DeleteAccount(newAccountId, "Testing");
                    commandBus.Send(deleteAccount);

                    var reinstateAccount = new ReinstateAccount(newAccountId);
                    commandBus.Send(reinstateAccount);

                    var query    = new GetAccountDetailsById(newAccountId);
                    var response = queryProcessor.ProcessQuery <GetAccountDetailsById, GetAccountDetailsByIdResponse>(query);

                    Console.WriteLine(response.AccountDetailsDto.AccountId);
                    Console.WriteLine(response.AccountDetailsDto.BusinessName);
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.Message);
                }
            }
        }
コード例 #16
0
    //ユーザアカウントの削除
    public static void deleteAccount()
    {
        NCMBQuery <NCMBObject> query = new NCMBQuery <NCMBObject>("user");

        query.WhereEqualTo("userName", PlayerInformation.playerName);
        query.FindAsync((List <NCMBObject> objList, NCMBException e) =>
        {
            //検索成功したら
            if (e == null)
            {
                objList[0].DeleteAsync((NCMBException ne) =>
                {
                    if (ne == null)
                    {
                        deleteData("HighScore");
                        LogInNow = false;
                        // saveLogInNow();

                        userName       = "******";
                        successConnect = true;
                        DeleteAccount.setMessage("削除しました");
                        Debug.Log("アカウントを削除したよ");
                        PlayerInformation.resetInformation();
                        PhotonNetwork.playerName = userName;
                        Debug.Log(PhotonNetwork.player.NickName); //playerの名前を確認
                        SceneManager.LoadScene("Title");
                        return;
                    }
                    else
                    {
                        DeleteAccount.setMessage("エラー" + e.ErrorCode + ":" + e.Message);
                    }
                });
            }
        });
    }
        void ReleaseDesignerOutlets()
        {
            if (AccountData != null)
            {
                AccountData.Dispose();
                AccountData = null;
            }

            if (AccountDataSection != null)
            {
                AccountDataSection.Dispose();
                AccountDataSection = null;
            }

            if (BottomConstraint != null)
            {
                BottomConstraint.Dispose();
                BottomConstraint = null;
            }

            if (Cancel != null)
            {
                Cancel.Dispose();
                Cancel = null;
            }

            if (ChangePassword != null)
            {
                ChangePassword.Dispose();
                ChangePassword = null;
            }

            if (ChangePasswordSection != null)
            {
                ChangePasswordSection.Dispose();
                ChangePasswordSection = null;
            }

            if (CheckUsername != null)
            {
                CheckUsername.Dispose();
                CheckUsername = null;
            }

            if (ConfirmPassword != null)
            {
                ConfirmPassword.Dispose();
                ConfirmPassword = null;
            }

            if (ConfirmPasswordLabel != null)
            {
                ConfirmPasswordLabel.Dispose();
                ConfirmPasswordLabel = null;
            }

            if (DeactivateAccount != null)
            {
                DeactivateAccount.Dispose();
                DeactivateAccount = null;
            }

            if (DeleteAccount != null)
            {
                DeleteAccount.Dispose();
                DeleteAccount = null;
            }

            if (DescriptionLabel != null)
            {
                DescriptionLabel.Dispose();
                DescriptionLabel = null;
            }

            if (DescriptionText != null)
            {
                DescriptionText.Dispose();
                DescriptionText = null;
            }

            if (DistanceShareAll != null)
            {
                DistanceShareAll.Dispose();
                DistanceShareAll = null;
            }

            if (DistanceShareAllLabel != null)
            {
                DistanceShareAllLabel.Dispose();
                DistanceShareAllLabel = null;
            }

            if (DistanceShareFriend != null)
            {
                DistanceShareFriend.Dispose();
                DistanceShareFriend = null;
            }

            if (DistanceShareFriendLabel != null)
            {
                DistanceShareFriendLabel.Dispose();
                DistanceShareFriendLabel = null;
            }

            if (DistanceShareLabel != null)
            {
                DistanceShareLabel.Dispose();
                DistanceShareLabel = null;
            }

            if (DistanceShareLike != null)
            {
                DistanceShareLike.Dispose();
                DistanceShareLike = null;
            }

            if (DistanceShareLikeLabel != null)
            {
                DistanceShareLikeLabel.Dispose();
                DistanceShareLikeLabel = null;
            }

            if (DistanceShareMatch != null)
            {
                DistanceShareMatch.Dispose();
                DistanceShareMatch = null;
            }

            if (DistanceShareMatchLabel != null)
            {
                DistanceShareMatchLabel.Dispose();
                DistanceShareMatchLabel = null;
            }

            if (DistanceShareNone != null)
            {
                DistanceShareNone.Dispose();
                DistanceShareNone = null;
            }

            if (DistanceShareNoneLabel != null)
            {
                DistanceShareNoneLabel.Dispose();
                DistanceShareNoneLabel = null;
            }

            if (EditImagesUploaded != null)
            {
                EditImagesUploaded.Dispose();
                EditImagesUploaded = null;
            }

            if (Email != null)
            {
                Email.Dispose();
                Email = null;
            }

            if (EmailLabel != null)
            {
                EmailLabel.Dispose();
                EmailLabel = null;
            }

            if (ImageEditor != null)
            {
                ImageEditor.Dispose();
                ImageEditor = null;
            }

            if (ImageEditorCancel != null)
            {
                ImageEditorCancel.Dispose();
                ImageEditorCancel = null;
            }

            if (ImageEditorControls != null)
            {
                ImageEditorControls.Dispose();
                ImageEditorControls = null;
            }

            if (ImageEditorFrame != null)
            {
                ImageEditorFrame.Dispose();
                ImageEditorFrame = null;
            }

            if (ImageEditorFrameBorder != null)
            {
                ImageEditorFrameBorder.Dispose();
                ImageEditorFrameBorder = null;
            }

            if (ImageEditorLabel != null)
            {
                ImageEditorLabel.Dispose();
                ImageEditorLabel = null;
            }

            if (ImageEditorOK != null)
            {
                ImageEditorOK.Dispose();
                ImageEditorOK = null;
            }

            if (ImageEditorStatus != null)
            {
                ImageEditorStatus.Dispose();
                ImageEditorStatus = null;
            }

            if (Images != null)
            {
                Images.Dispose();
                Images = null;
            }

            if (ImagesProgress != null)
            {
                ImagesProgress.Dispose();
                ImagesProgress = null;
            }

            if (ImagesProgressText != null)
            {
                ImagesProgressText.Dispose();
                ImagesProgressText = null;
            }

            if (LoaderCircle != null)
            {
                LoaderCircle.Dispose();
                LoaderCircle = null;
            }

            if (LocationSettings != null)
            {
                LocationSettings.Dispose();
                LocationSettings = null;
            }

            if (LocationSettingsSection != null)
            {
                LocationSettingsSection.Dispose();
                LocationSettingsSection = null;
            }

            if (LocationShareAll != null)
            {
                LocationShareAll.Dispose();
                LocationShareAll = null;
            }

            if (LocationShareAllLabel != null)
            {
                LocationShareAllLabel.Dispose();
                LocationShareAllLabel = null;
            }

            if (LocationShareFriend != null)
            {
                LocationShareFriend.Dispose();
                LocationShareFriend = null;
            }

            if (LocationShareFriendLabel != null)
            {
                LocationShareFriendLabel.Dispose();
                LocationShareFriendLabel = null;
            }

            if (LocationShareLabel != null)
            {
                LocationShareLabel.Dispose();
                LocationShareLabel = null;
            }

            if (LocationShareLike != null)
            {
                LocationShareLike.Dispose();
                LocationShareLike = null;
            }

            if (LocationShareLikeLabel != null)
            {
                LocationShareLikeLabel.Dispose();
                LocationShareLikeLabel = null;
            }

            if (LocationShareMatch != null)
            {
                LocationShareMatch.Dispose();
                LocationShareMatch = null;
            }

            if (LocationShareMatchLabel != null)
            {
                LocationShareMatchLabel.Dispose();
                LocationShareMatchLabel = null;
            }

            if (LocationShareNone != null)
            {
                LocationShareNone.Dispose();
                LocationShareNone = null;
            }

            if (LocationShareNoneLabel != null)
            {
                LocationShareNoneLabel.Dispose();
                LocationShareNoneLabel = null;
            }

            if (Men != null)
            {
                Men.Dispose();
                Men = null;
            }

            if (MenLabel != null)
            {
                MenLabel.Dispose();
                MenLabel = null;
            }

            if (MoreOptions != null)
            {
                MoreOptions.Dispose();
                MoreOptions = null;
            }

            if (MoreOptionsSection != null)
            {
                MoreOptionsSection.Dispose();
                MoreOptionsSection = null;
            }

            if (Name != null)
            {
                Name.Dispose();
                Name = null;
            }

            if (NameLabel != null)
            {
                NameLabel.Dispose();
                NameLabel = null;
            }

            if (NewPassword != null)
            {
                NewPassword.Dispose();
                NewPassword = null;
            }

            if (NewPasswordLabel != null)
            {
                NewPasswordLabel.Dispose();
                NewPasswordLabel = null;
            }

            if (OldPassword != null)
            {
                OldPassword.Dispose();
                OldPassword = null;
            }

            if (OldPasswordLabel != null)
            {
                OldPasswordLabel.Dispose();
                OldPasswordLabel = null;
            }

            if (ProfileEdit_Scroll != null)
            {
                ProfileEdit_Scroll.Dispose();
                ProfileEdit_Scroll = null;
            }

            if (RippleImageEditor != null)
            {
                RippleImageEditor.Dispose();
                RippleImageEditor = null;
            }

            if (RoundBottom != null)
            {
                RoundBottom.Dispose();
                RoundBottom = null;
            }

            if (Save != null)
            {
                Save.Dispose();
                Save = null;
            }

            if (ScrollBottomConstraint != null)
            {
                ScrollBottomConstraint.Dispose();
                ScrollBottomConstraint = null;
            }

            if (ScrollBottomOuterConstraint != null)
            {
                ScrollBottomOuterConstraint.Dispose();
                ScrollBottomOuterConstraint = null;
            }

            if (SexLabel != null)
            {
                SexLabel.Dispose();
                SexLabel = null;
            }

            if (Snackbar != null)
            {
                Snackbar.Dispose();
                Snackbar = null;
            }

            if (SnackBottomConstraint != null)
            {
                SnackBottomConstraint.Dispose();
                SnackBottomConstraint = null;
            }

            if (SnackTopConstraint != null)
            {
                SnackTopConstraint.Dispose();
                SnackTopConstraint = null;
            }

            if (TopSeparator != null)
            {
                TopSeparator.Dispose();
                TopSeparator = null;
            }

            if (UseLocationLabel != null)
            {
                UseLocationLabel.Dispose();
                UseLocationLabel = null;
            }

            if (UseLocationSwitch != null)
            {
                UseLocationSwitch.Dispose();
                UseLocationSwitch = null;
            }

            if (Username != null)
            {
                Username.Dispose();
                Username = null;
            }

            if (UsernameLabel != null)
            {
                UsernameLabel.Dispose();
                UsernameLabel = null;
            }

            if (ViewportConstraint != null)
            {
                ViewportConstraint.Dispose();
                ViewportConstraint = null;
            }

            if (Women != null)
            {
                Women.Dispose();
                Women = null;
            }

            if (WomenLabel != null)
            {
                WomenLabel.Dispose();
                WomenLabel = null;
            }
        }
コード例 #18
0
ファイル: HomeController.cs プロジェクト: MrDustpan/CqrsBank
        public async Task <ActionResult> Delete(DeleteAccount command)
        {
            await _commandProcessor.ProcessAsync(command);

            return(RedirectToAction("Index"));
        }
コード例 #19
0
 public void OnDeleteAccount(IEnumerable <int> accountIds)
 {
     Task.Run(() =>
              DeleteAccount?.Invoke(this, accountIds));
 }
コード例 #20
0
 public async Task HandleAsync(DeleteAccount command)
 => await CreateForAuthenticatedUserAsync(command);
コード例 #21
0
        private void mnuTabDeleteAccount_Click(object sender, RoutedEventArgs e)
        {
            DeleteAccount deleteAccount = new DeleteAccount();

            AddTab(deleteAccount);
        }
コード例 #22
0
        public override void ViewDidLoad()
        {
            try
            {
                base.ViewDidLoad();

                Images.SetTitle(LangEnglish.Images, UIControlState.Normal);
                ImagesProgressText.Text = "";
                DescriptionLabel.Text   = LangEnglish.Description;
                SexLabel.Text           = LangEnglish.EditSex;
                WomenLabel.Text         = LangEnglish.Women;
                MenLabel.Text           = LangEnglish.Men;

                AccountData.SetTitle(LangEnglish.EditAccountData, UIControlState.Normal);
                ChangePassword.SetTitle(LangEnglish.EditChangePassword, UIControlState.Normal);
                LocationSettings.SetTitle(LangEnglish.EditLocationSettings, UIControlState.Normal);

                Save.SetTitle(LangEnglish.EditSave, UIControlState.Normal);
                Cancel.SetTitle(LangEnglish.Cancel, UIControlState.Normal);

                MoreOptions.SetTitle(LangEnglish.EditMoreOptions, UIControlState.Normal);

                EmailLabel.Text    = LangEnglish.Email;
                UsernameLabel.Text = LangEnglish.Username;
                CheckUsername.SetTitle(LangEnglish.CheckAvailability, UIControlState.Normal);
                NameLabel.Text = LangEnglish.Name;

                OldPasswordLabel.Text     = LangEnglish.EditOldPassword;
                NewPasswordLabel.Text     = LangEnglish.EditNewPassword;
                ConfirmPasswordLabel.Text = LangEnglish.EditConfirmPassword;

                UseLocationLabel.Text         = LangEnglish.UseLocation;
                LocationShareLabel.Text       = LangEnglish.LocationShare;
                LocationShareAllLabel.Text    = LangEnglish.LocationShareAll;
                LocationShareLikeLabel.Text   = LangEnglish.LocationShareLike;
                LocationShareMatchLabel.Text  = LangEnglish.LocationShareMatch;
                LocationShareFriendLabel.Text = LangEnglish.LocationShareFriend;
                LocationShareNoneLabel.Text   = LangEnglish.LocationShareNone;
                DistanceShareLabel.Text       = LangEnglish.DistanceShare;
                DistanceShareAllLabel.Text    = LangEnglish.DistanceShareAll;
                DistanceShareLikeLabel.Text   = LangEnglish.DistanceShareLike;
                DistanceShareMatchLabel.Text  = LangEnglish.DistanceShareMatch;
                DistanceShareFriendLabel.Text = LangEnglish.DistanceShareFriend;
                DistanceShareNoneLabel.Text   = LangEnglish.DistanceShareNone;
                ImageEditorLabel.Text         = LangEnglish.ImageEditorLabel;

                DeactivateAccount.SetTitle(LangEnglish.DeactivateAccount, UIControlState.Normal);
                DeleteAccount.SetTitle(LangEnglish.DeleteAccount, UIControlState.Normal);

                DescriptionText.Delegate = this;

                Images.Layer.MasksToBounds            = true;
                CheckUsername.Layer.MasksToBounds     = true;
                Save.Layer.MasksToBounds              = true;
                Cancel.Layer.MasksToBounds            = true;
                DeactivateAccount.Layer.MasksToBounds = true;
                DeleteAccount.Layer.MasksToBounds     = true;

                c.DrawBorder(DescriptionText);

                c.CollapseY(AccountDataSection);
                c.CollapseY(ChangePasswordSection);
                c.CollapseY(LocationSettingsSection);
                c.CollapseY(MoreOptionsSection);
                LoaderCircle.Hidden = true;

                ImageEditorFrameBorder.Layer.BorderColor = UIColor.FromName("PrimaryDark").CGColor;
                ImageEditorFrameBorder.Layer.BorderWidth = 1;

                rc = new RegisterCommonMethods(this, c, ImagesUploaded, Email, Username, Name, DescriptionText, CheckUsername, Images,
                                               ImagesProgressText, LoaderCircle, ImagesProgress, UseLocationSwitch, LocationShareAll, LocationShareLike, LocationShareMatch, LocationShareFriend, LocationShareNone,
                                               DistanceShareAll, DistanceShareLike, DistanceShareMatch, DistanceShareFriend, DistanceShareNone, ImageEditorControls, TopSeparator, RippleImageEditor, ImageEditorStatus, ImageEditorCancel, ImageEditorOK, ImageEditor, ImageEditorFrame, ImageEditorFrameBorder);

                c.AddViews(Snackbar, Snackbar.SnackText, Snackbar.SnackButton);
                ProfileEditScroll.SetContext(this);

                ImagesUploaded.SetContext(this);
                ImagesUploaded.numColumns  = 3; //it does not get passed in the layout file
                ImagesUploaded.tileSpacing = 2;

                AccountData.TouchUpInside      += AccountData_Click;
                ChangePassword.TouchUpInside   += ChangePassword_Click;
                LocationSettings.TouchUpInside += LocationSettings_Click;

                Save.TouchUpInside              += Save_Click;
                Cancel.TouchUpInside            += Cancel_Click;
                MoreOptions.TouchUpInside       += MoreOptions_Click;
                DeactivateAccount.TouchUpInside += DeactivateAccount_Click;
                DeleteAccount.TouchUpInside     += DeleteAccount_Click;

                ImageEditorCancel.TouchUpInside += rc.CancelImageEditing;
                ImageEditorOK.TouchUpInside     += rc.OKImageEditing;

                RoundBottom_Base                 = RoundBottom;
                Snackbar_Base                    = Snackbar;
                BottomConstraint_Base            = BottomConstraint;
                SnackTopConstraint_Base          = SnackTopConstraint;
                SnackBottomConstraint_Base       = SnackBottomConstraint;
                ScrollBottomConstraint_Base      = ScrollBottomConstraint;
                ScrollBottomOuterConstraint_Base = ScrollBottomOuterConstraint;
                ViewportConstraint_Base          = ViewportConstraint;
            }
            catch (Exception ex)
            {
                c.ReportErrorSilent(ex.Message + Environment.NewLine + ex.StackTrace);
            }
        }
コード例 #23
0
        public void DeleteAccount(int accountId)
        {
            DeleteAccount deleteAccount = new DeleteAccount(accountId);

            deleteAccount.Excute();
        }
コード例 #24
0
        public void DeleteAccount(int accountId, Account loginUser)
        {
            DeleteAccount deleteAccount = new DeleteAccount(accountId, loginUser);

            deleteAccount.Excute();
        }
コード例 #25
0
 public abstract void When(DeleteAccount message);