Ejemplo n.º 1
0
        public override void OnDialogPositiveClick(object sender)
        {
            base.OnDialogPositiveClick (sender);
            var dialogfragment = (sender as CutomAlterDialogFragment);

            if (dialogfragment != null && dialogfragment.Tag.Equals ("locationpicker")) {
                DismissAlterDialogFragment ("locationpicker");
                LocationSpinnerAlterDialogFragment fragment = (LocationSpinnerAlterDialogFragment)dialogfragment;
                GlobalVariable.tap5050location = GlobalVariable.tap5050locationllist [(int)fragment.spinner.Tag];
                GlobalVariable.currentlocation = GlobalVariable.tap5050locationllist [(int)fragment.spinner.Tag].location_name;
                //retrive events from server
                //if it is first time login
                UsernameTableObject obj = App.INSTANCE.databasemanager.GetUsername (GlobalVariable.username);

                //if first time login show fragment
                if (obj != null && obj.HaveLogged == 0) {
                    ShowTutorialFragment (0);
                    App.INSTANCE.databasemanager.SetLogged (GlobalVariable.username);
                } else {
                    InitialFragment (GlobalVariable.currentlocation);
                }

                RunOnUiThread (() => {
                    RemoveSpinner ();
                });
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.locationpicker.getprovince")) {
                DismissAlterDialogFragment ("exceptiondialog.locationpicker.getprovince");
                GetAvailableProvince ();
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("quitealarm")) {
                DismissAlterDialogFragment ("quitealarm");
                this.Finish ();
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("WarnRestSocial")) {
                DismissAlterDialogFragment ("WarnRestSocial");
                SocialShareAndroid socialshareandroid = new SocialShareAndroid (this);
                socialshareandroid.ResetLogin ();
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("WarnSignOut")) {
                DismissAlterDialogFragment ("WarnSignOut");
                SocialShareAndroid socialshareandroid = new SocialShareAndroid (this);
                socialshareandroid.ResetLogin ();

                Intent intent = new Intent (this, typeof(LoginScreen));
                intent.AddFlags (ActivityFlags.NoAnimation);
                StartActivity (intent);
                this.Finish ();
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.getevents")) {
                DismissAlterDialogFragment ("exceptiondialog.getevents");
                if (currentfragment is RaffleRootFragment) {
                    (currentfragment as RaffleRootFragment).RetrieveEvents ();
                }
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.refreshraffledetail")) {
                DismissAlterDialogFragment ("exceptiondialog.refreshraffledetail");
                if (currentfragment is RaffleDetailFragment) {
                    (currentfragment as RaffleDetailFragment).OnRefreshclickFunc ();
                }
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.temppasschecktoken")) {
                DismissAlterDialogFragment ("exceptiondialog.temppasschecktoken");
                if (currentfragment is RaffleGetTempPassFragment) {
                    (currentfragment as RaffleGetTempPassFragment).OnRequestTempPassClick (this, new EventArgs ());
                }
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.gettempasscheckuserbyemail")) {
                DismissAlterDialogFragment ("exceptiondialog.gettempasscheckuserbyemail");
                if (currentfragment is RaffleGetTempPassFragment) {
                    (currentfragment as RaffleGetTempPassFragment).OnRequestTempPassClick (this, new EventArgs ());
                }
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.gettempasscheckuserbyphone")) {
                DismissAlterDialogFragment ("exceptiondialog.gettempasscheckuserbyphone");
                if (currentfragment is RaffleGetTempPassFragment) {
                    (currentfragment as RaffleGetTempPassFragment).OnRequestTempPassClick (this, new EventArgs ());
                }
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.gettemppassrequestpass")) {
                DismissAlterDialogFragment ("exceptiondialog.gettemppassrequestpass");
                if (currentfragment is RaffleGetTempPassFragment) {
                    (currentfragment as RaffleGetTempPassFragment).OnRequestTempPassClick (this, new EventArgs ());
                }
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.accountinfo.checktoken")) {
                DismissAlterDialogFragment ("exceptiondialog.accountinfo.checktoken");
                if (currentfragment is AccountRootFragment) {
                    (currentfragment as AccountRootFragment).RetrieveSellerInfo ();
                }
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.getteamralaships")) {
                DismissAlterDialogFragment ("exceptiondialog.getteamralaships");
                if (currentfragment is RelationshipFragment) {
                    (currentfragment as RelationshipFragment).LoadTeam ();
                }
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("invalidedialog.accounbtinfo.checktoken")) {
                DismissAlterDialogFragment ("invalidedialog.accounbtinfo.checktoken");
                BackToLogin ();
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("invalidedialog.raffleroot.checktoken")) {
                DismissAlterDialogFragment ("invalidedialog.raffleroot.checktoken");
                BackToLogin ();
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.raffleroot.gettoken")) {
                DismissAlterDialogFragment ("exceptiondialog.raffleroot.gettoken");
                if (currentfragment is RaffleRootFragment) {
                    (currentfragment as RaffleRootFragment).RetrieveEvents ();
                }
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("invalidedialog.raffledetail.checktoken")) {
                DismissAlterDialogFragment ("invalidedialog.raffledetail.checktoken");
                BackToLogin ();
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.raffledetail.checktoken")) {
                DismissAlterDialogFragment ("exceptiondialog.raffledetail.checktoken");
                if (currentfragment is RaffleDetailFragment) {
                    (currentfragment as RaffleDetailFragment).OnRefreshclickFunc ();
                }
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.accountinfo.getaccountinfo")) {
                DismissAlterDialogFragment ("exceptiondialog.accountinfo.getaccountinfo");
                if (currentfragment is AccountRootFragment) {
                    (currentfragment as AccountRootFragment).RetrieveSellerInfo ();
                }
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.editaccount.checktoken")) {
                DismissAlterDialogFragment ("exceptiondialog.editaccount.checktoken");
                if (currentfragment is AccountEditFragment) {
                    (currentfragment as AccountEditFragment).OnUpdateAccount (this, new EventArgs ());
                }
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("invalidedialog.editaccount.checktoken")) {
                DismissAlterDialogFragment ("invalidedialog.editaccount.checktoken");
                BackToLogin ();
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.editaccount.update")) {
                DismissAlterDialogFragment ("exceptiondialog.editaccount.update");
                if (currentfragment is AccountEditFragment) {
                    (currentfragment as AccountEditFragment).OnUpdateAccount (this, new EventArgs ());
                }
            } else if (dialogfragment != null && dialogfragment.Tag.Equals ("editaccount.registersuccessdialog")) {
                DismissAlterDialogFragment ("editaccount.registersuccessdialog");
                if (currentfragment is AccountEditFragment) {
                    OnBackPressed ();
                }
            } else if (dialogfragment != null && (dialogfragment.Tag.Equals ("exceptiondialog.buyersignup.getcountry") || dialogfragment.Tag.Equals ("exceptiondialog.buyersignup.getstateandprovinceexception"))) {
                RemoveAllAlterDialogFragment ();
                (currentfragment as RaffleBuyerSignUpFragment).getcountryflag = false;
                (currentfragment as RaffleBuyerSignUpFragment).getprovincestate = false;
                (currentfragment as RaffleBuyerSignUpFragment).GetCountryStateAndProivince ();
            } else if (dialogfragment != null && (dialogfragment.Tag.Equals ("exceptiondialog.relationships.loadrelationships"))) {
                RemoveAllAlterDialogFragment ();
                (currentfragment as RelationshipFragment).LoadRelationships ();
            }
            //create team componenet
            else if (dialogfragment != null && (dialogfragment.Tag.Equals ("createteam.relationships.team"))) {
                DismissAlterDialogFragment ("createteam.relationships.team");
                CutomViewAlterDialogFragment fragment = (CutomViewAlterDialogFragment)dialogfragment;
                EditText edittext = (EditText)fragment.contentlayout.FindViewById (Resource.Id.createteam_name_edittext);
                if (FormatManager.chechinput (edittext.Text, FormatManager.FormatOption.Regular)) {
                    (currentfragment as RelationshipFragment).CreateTeam (edittext.Text, (int)fragment.parameter);
                } else {
                    Toast.MakeText (this, "Please make sure not special characters in your team name", ToastLength.Long).Show ();
                }
            } else if (dialogfragment != null && (dialogfragment.Tag.Equals ("exceptiondialog.createteam"))) {
                RemoveAllAlterDialogFragment ();
                CutomViewAlterDialogFragment fragment = (CutomViewAlterDialogFragment)dialogfragment;
                (currentfragment as RelationshipFragment).CreateTeam ();
            } else if (dialogfragment != null && (dialogfragment.Tag.Equals ("exceptiondialog.disbandteam"))) {
                RemoveAllAlterDialogFragment ();
                CutomAlterDialogFragment fragment = (CutomAlterDialogFragment)dialogfragment;
                (currentfragment as RelationshipFragment).DisbandTeam ((string)fragment.parameter);
            }else if (dialogfragment != null && (dialogfragment.Tag.Equals ("exceptiondialog.loadteammember"))) {
                RemoveAllAlterDialogFragment ();
                (currentfragment as TeamMemberViewFragment).LoadMember();
            }else if (dialogfragment != null && (dialogfragment.Tag.Equals ("exceptiondialog.inviteuser"))) {
                RemoveAllAlterDialogFragment ();
                CutomAlterDialogFragment fragment = (CutomAlterDialogFragment)dialogfragment;
                (currentfragment as TeamFindPotentialMemberFragment).InviteUser((Tap5050PotentialTeamMemberInfo)fragment.parameter);
            }else if (dialogfragment != null && (dialogfragment.Tag.Equals ("exceptiondialog.sendjointeamrequest"))) {
                RemoveAllAlterDialogFragment ();
                CutomAlterDialogFragment fragment = (CutomAlterDialogFragment)dialogfragment;
                (currentfragment as TeamFindViewFragment).SendJoinRequest((Tap5050TeamInfo)fragment.parameter);
            }else if (dialogfragment != null && (dialogfragment.Tag.Equals ("exceptiondialog.loadteams"))) {
                RemoveAllAlterDialogFragment ();
                (currentfragment as TeamFindViewFragment).LoadTeams();
            }

            else if (dialogfragment != null && (dialogfragment.Tag.Equals ("inviteuser.relationships.team"))) {
                RemoveAllAlterDialogFragment ();
                CutomViewAlterDialogFragment fragment = (CutomViewAlterDialogFragment)dialogfragment;
                EditText edittext = (EditText)fragment.contentlayout.FindViewById (Resource.Id.inviteuser_name_edittext);
                if (FormatManager.chechinput (edittext.Text, FormatManager.FormatOption.Email)) {
                    (currentfragment as RelationshipFragment).InviteUser (edittext.Text, (int)fragment.parameter);
                } else {
                    Toast.MakeText (this, "Please check format of your input", ToastLength.Long).Show ();
                }
            }
            //call web call and call load team again to refresh pops
            else if(dialogfragment != null && (dialogfragment.Tag.Equals ("invitepop.relationships.team"))){
                RemoveAllAlterDialogFragment ();
                CutomAlterDialogFragmentWithNeutral fragment = (CutomAlterDialogFragmentWithNeutral)dialogfragment;
                (currentfragment as RelationshipFragment).AcceptTeamInvitation ((Tap5050TeamInvitation)fragment.parameter);

            }
            //call web call and call load team again to refresh pops
            else if(dialogfragment != null && (dialogfragment.Tag.Equals ("requestpop.relationships.team"))){
                RemoveAllAlterDialogFragment ();
                CutomAlterDialogFragmentWithNeutral fragment = (CutomAlterDialogFragmentWithNeutral)dialogfragment;
                (currentfragment as RelationshipFragment).AcceptTeamRequest ((Tap5050TeamRequest)fragment.parameter);

            }
            else if(dialogfragment != null && (dialogfragment.Tag.Equals ("invitepop.raffleroot.team"))){
                RemoveAllAlterDialogFragment ();
                CutomAlterDialogFragmentWithNeutral fragment = (CutomAlterDialogFragmentWithNeutral)dialogfragment;
                (currentfragment as RaffleRootFragment).AcceptTeamInvitation ((Tap5050TeamInvitation)fragment.parameter);

            }else if(dialogfragment != null && (dialogfragment.Tag.Equals ("requestpop.raffleroot.team"))){
                RemoveAllAlterDialogFragment ();
                CutomAlterDialogFragmentWithNeutral fragment = (CutomAlterDialogFragmentWithNeutral)dialogfragment;
                (currentfragment as RaffleRootFragment).AcceptTeamRequest ((Tap5050TeamRequest)fragment.parameter);
            }

            else if(dialogfragment != null && (dialogfragment.Tag.Equals ("disbandteamconfirm.relationships.team"))){
                RemoveAllAlterDialogFragment ();
                CutomAlterDialogFragment fragment = (CutomAlterDialogFragment)dialogfragment;
                (currentfragment as RelationshipFragment).DisbandTeam ((string)fragment.parameter);
            }
            else if(dialogfragment != null && (dialogfragment.Tag.Equals ("leaveteamconfirm.relationships.team"))){
                RemoveAllAlterDialogFragment ();
                CutomAlterDialogFragment fragment = (CutomAlterDialogFragment)dialogfragment;
                (currentfragment as RelationshipFragment).KickMember((string)fragment.parameter);
            }
            else if(dialogfragment != null && (dialogfragment.Tag.Equals ("exceptiondialog.uninvitemember"))){
                RemoveAllAlterDialogFragment ();
                CutomAlterDialogFragment fragment = (CutomAlterDialogFragment)dialogfragment;
                (currentfragment as RelationshipFragment).KickMember((string)fragment.parameter);
            }
            else if (dialogfragment != null && (dialogfragment.Tag.Equals ("exceptiondialog.getpotentialmember.team"))) {
                RemoveAllAlterDialogFragment ();
                CutomAlterDialogFragment fragment = (CutomAlterDialogFragment)dialogfragment;
                (currentfragment as TeamFindPotentialMemberFragment).LoadPotencialMembers();
            }
            else if(dialogfragment != null && (dialogfragment.Tag.Equals ("exceptiondialog.account.resetpass"))){
                RemoveAllAlterDialogFragment ();
                (currentfragment as AccountResetPasswordFragment).ResetPassWord ();
            }
            else if(dialogfragment != null && (dialogfragment.Tag.Equals ("successdialog.buyersignup.success"))){
                RemoveAllAlterDialogFragment ();
                CutomAlterDialogFragment fragment = (CutomAlterDialogFragment)dialogfragment;
                (currentfragment as RaffleBuyerSignUpFragment).BackToSellTicket ((string)fragment.parameter);
            }else if(dialogfragment != null && (dialogfragment.Tag.Equals ("alter.invitesuccess"))){
                RemoveAllAlterDialogFragment ();
                CutomAlterDialogFragment fragment = (CutomAlterDialogFragment)dialogfragment;
                (currentfragment as TeamFindPotentialMemberFragment).LoadPotencialMembers ();
            }
        }
Ejemplo n.º 2
0
        public override void OnDialogPositiveClick(object sender)
        {
            base.OnDialogPositiveClick (sender);
            var dialogfragment = (sender as CutomAlterDialogFragment);

            if (dialogfragment != null && dialogfragment.Tag.Equals ("locationpicker")) {
                DismissAlterDialogFragment ("locationpicker");
                LocationSpinnerAlterDialogFragment fragment = (LocationSpinnerAlterDialogFragment)dialogfragment;
                GlobalVariable.tap5050location = GlobalVariable.tap5050locationllist [(int)fragment.spinner.Tag];
                GlobalVariable.currentlocation = GlobalVariable.tap5050locationllist [(int)fragment.spinner.Tag].location_name;
                //retrive events from server
                //if it is first time login
                UsernameTableObject obj=App.INSTANCE.databasemanager.GetUsername(GlobalVariable.username);

                //if first time login show fragment
                if (obj!=null&&obj.HaveLogged == 0) {
                    ShowTutorialFragment(0);
                    App.INSTANCE.databasemanager.SetLogged (GlobalVariable.username);
                }
                else{
                    InitialFragment(GlobalVariable.currentlocation);
                }

                RunOnUiThread(()=>{
                    RemoveSpinner ();
                });
            }
            else if(dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.locationpicker.getprovince")){
                DismissAlterDialogFragment ("exceptiondialog.locationpicker.getprovince");
                GetAvailableProvince ();
            }

            else if(dialogfragment != null && dialogfragment.Tag.Equals ("quitealarm")){
                DismissAlterDialogFragment ("quitealarm");
                this.Finish ();
            }
            else if(dialogfragment != null && dialogfragment.Tag.Equals ("WarnRestSocial")){
                DismissAlterDialogFragment ("WarnRestSocial");
                SocialShareAndroid socialshareandroid=new SocialShareAndroid(this);
                socialshareandroid.ResetLogin();
            }
            else if(dialogfragment != null && dialogfragment.Tag.Equals ("WarnSignOut")){
                DismissAlterDialogFragment ("WarnSignOut");
                SocialShareAndroid socialshareandroid=new SocialShareAndroid(this);
                socialshareandroid.ResetLogin();

                Intent intent = new Intent (this,typeof(LoginScreen));
                intent.AddFlags (ActivityFlags.NoAnimation);
                StartActivity (intent);
                this.Finish ();
            }
            else if(dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.getevents")){
                DismissAlterDialogFragment ("exceptiondialog.getevents");
                if (currentfragment is RaffleRootFragment) {
                    (currentfragment as RaffleRootFragment).RetrieveEvents ();
                }
            }
            else if(dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.refreshraffledetail")){
                DismissAlterDialogFragment ("exceptiondialog.refreshraffledetail");
                if (currentfragment is RaffleDetailFragment) {
                    (currentfragment as RaffleDetailFragment).OnRefreshclickFunc ();
                }
            }
            else if(dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.temppasschecktoken")){
                DismissAlterDialogFragment ("exceptiondialog.temppasschecktoken");
                if (currentfragment is RaffleGetTempPassFragment) {
                    (currentfragment as RaffleGetTempPassFragment).OnRequestTempPassClick(this,new EventArgs());
                }
            }
            else if(dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.gettempasscheckuserbyemail")){
                DismissAlterDialogFragment ("exceptiondialog.gettempasscheckuserbyemail");
                if (currentfragment is RaffleGetTempPassFragment) {
                    (currentfragment as RaffleGetTempPassFragment).OnRequestTempPassClick(this,new EventArgs());
                }
            }
            else if(dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.gettempasscheckuserbyphone")){
                DismissAlterDialogFragment ("exceptiondialog.gettempasscheckuserbyphone");
                if (currentfragment is RaffleGetTempPassFragment) {
                    (currentfragment as RaffleGetTempPassFragment).OnRequestTempPassClick(this,new EventArgs());
                }
            }
            else if(dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.gettemppassrequestpass")){
                DismissAlterDialogFragment ("exceptiondialog.gettemppassrequestpass");
                if (currentfragment is RaffleGetTempPassFragment) {
                    (currentfragment as RaffleGetTempPassFragment).OnRequestTempPassClick(this,new EventArgs());
                }
            }
            else if(dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.accountinfo.checktoken")){
                DismissAlterDialogFragment ("exceptiondialog.accountinfo.checktoken");
                if (currentfragment is AccountRootFragment) {
                    (currentfragment as AccountRootFragment).RetrieveSellerInfo();
                }
            }
            else if(dialogfragment != null && dialogfragment.Tag.Equals ("invalidedialog.accounbtinfo.checktoken")){
                DismissAlterDialogFragment ("invalidedialog.accounbtinfo.checktoken");
                BackToLogin ();
            }
            else if(dialogfragment != null && dialogfragment.Tag.Equals ("invalidedialog.raffleroot.checktoken")){
                DismissAlterDialogFragment ("invalidedialog.raffleroot.checktoken");
                BackToLogin ();
            }
            else if(dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.raffleroot.gettoken")){
                DismissAlterDialogFragment ("exceptiondialog.raffleroot.gettoken");
                if (currentfragment is RaffleRootFragment) {
                    (currentfragment as RaffleRootFragment).RetrieveEvents();
                }
            }
            else if(dialogfragment != null && dialogfragment.Tag.Equals ("invalidedialog.raffledetail.checktoken")){
                DismissAlterDialogFragment ("invalidedialog.raffledetail.checktoken");
                BackToLogin ();
            }
            else if(dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.raffledetail.checktoken")){
                DismissAlterDialogFragment ("exceptiondialog.raffledetail.checktoken");
                if (currentfragment is RaffleDetailFragment) {
                    (currentfragment as RaffleDetailFragment).OnRefreshclickFunc();
                }
            }
            else if(dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.goals.getevents")){
                DismissAlterDialogFragment ("exceptiondialog.goals.getevents");
                if (currentfragment is SalesFragment) {
                    (currentfragment as SalesFragment).RetrieveEvents();
                }
            }

            else if(dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.goalshistory.eventhistory")){
                DismissAlterDialogFragment ("exceptiondialog.goalshistory.eventhistory");
                if (currentfragment is SalesEventHistoryFragment) {
                    (currentfragment as SalesEventHistoryFragment).RetrieveHistoryEvent();
                }
            }

            else if(dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.accountinfo.getaccountinfo")){
                DismissAlterDialogFragment ("exceptiondialog.accountinfo.getaccountinfo");
                if (currentfragment is AccountRootFragment) {
                    (currentfragment as AccountRootFragment).RetrieveSellerInfo();
                }
            }
            else if(dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.editaccount.checktoken")){
                DismissAlterDialogFragment ("exceptiondialog.editaccount.checktoken");
                if (currentfragment is AccountEditFragment) {
                    (currentfragment as AccountEditFragment).OnUpdateAccount(this,new EventArgs());
                }
            }
            else if(dialogfragment != null && dialogfragment.Tag.Equals ("invalidedialog.editaccount.checktoken")){
                DismissAlterDialogFragment ("invalidedialog.editaccount.checktoken");
                BackToLogin();
            }
            else if(dialogfragment != null && dialogfragment.Tag.Equals ("exceptiondialog.editaccount.update")){
                DismissAlterDialogFragment ("exceptiondialog.editaccount.update");
                if (currentfragment is AccountEditFragment) {
                    (currentfragment as AccountEditFragment).OnUpdateAccount(this,new EventArgs());
                }
            }
            else if(dialogfragment != null && dialogfragment.Tag.Equals ("editaccount.registersuccessdialog")){
                DismissAlterDialogFragment ("editaccount.registersuccessdialog");
                if (currentfragment is AccountEditFragment) {
                    OnBackPressed ();
                }
            }
            else if(dialogfragment != null && (dialogfragment.Tag.Equals ("exceptiondialog.buyersignup.getcountry")||dialogfragment.Tag.Equals ("exceptiondialog.buyersignup.getstateandprovinceexception"))){
                RemoveAllAlterDialogFragment ();
                (currentfragment as RaffleBuyerSignUpFragment).getcountryflag = false;
                (currentfragment as RaffleBuyerSignUpFragment).getprovincestate = false;
                (currentfragment as RaffleBuyerSignUpFragment).GetCountryStateAndProivince ();
            }
            else if(dialogfragment != null&&(dialogfragment.Tag.Equals ("exceptiondialog.relationships.loadrelationships"))){
                RemoveAllAlterDialogFragment ();
                (currentfragment as RelationshipFragment).LoadRelationships ();
            }
        }