void ParcaYerlestir(int durum)
        {
            Button[] Tabs = new Button[] { TumuButton, CevrimIciButton, BeklenenlerButton };
            for (int i = 0; i < Tabs.Length; i++)
            {
                Tabs[i].SetTextColor(Color.Black);
                Tabs[i].SetBackgroundColor(Color.Transparent);
            }

            ClearFragment();
            switch (durum)
            {
            case 0:
                TumuButton.SetBackgroundResource(Resource.Drawable.customtabselecteditem);
                TumuButton.SetTextColor(Color.White);
                TumuBaseFragment TumuBaseFragment1 = new TumuBaseFragment();
                IcerikHazesi.RemoveAllViews();
                ft = this.SupportFragmentManager.BeginTransaction();
                ft.AddToBackStack(null);
                ft.Replace(Resource.Id.contentframe, TumuBaseFragment1);    //
                ft.Commit();
                break;

            case 1:
                CevrimIciButton.SetBackgroundResource(Resource.Drawable.customtabselecteditem);
                CevrimIciButton.SetTextColor(Color.White);
                CevrimIciBaseFragment CevrimIciBaseFragment1 = new CevrimIciBaseFragment();
                IcerikHazesi.RemoveAllViews();
                ft = this.SupportFragmentManager.BeginTransaction();
                ft.AddToBackStack(null);
                ft.Replace(Resource.Id.contentframe, CevrimIciBaseFragment1);    //
                ft.Commit();
                break;

            case 2:
                BeklenenlerButton.SetBackgroundResource(Resource.Drawable.customtabselecteditem);
                BeklenenlerButton.SetTextColor(Color.White);
                BekleyenlerBaseFragment BekleyenlerBaseFragment1 = new BekleyenlerBaseFragment();
                IcerikHazesi.RemoveAllViews();
                ft = this.SupportFragmentManager.BeginTransaction();
                ft.AddToBackStack(null);
                ft.Replace(Resource.Id.contentframe, BekleyenlerBaseFragment1);    //
                ft.Commit();
                break;

            default:
                break;
            }
        }
Beispiel #2
0
        void ReleaseDesignerOutlets()
        {
            if (BackButton != null)
            {
                BackButton.Dispose();
                BackButton = null;
            }

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

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

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

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

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

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

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

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

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