private void SetRecyclerViewAdapters()
        {
            try
            {
                MAdapter = new AttachmentsAdapter(this)
                {
                    AttachmentList = new ObservableCollection <Attachments>()
                };
                LayoutManager = new LinearLayoutManager(this, LinearLayoutManager.Horizontal, false);
                MRecycler.SetLayoutManager(LayoutManager);
                MRecycler.SetAdapter(MAdapter);

                MRecycler.Visibility = ViewStates.Visible;

                // Add first image Default
                var attach = new Attachments
                {
                    Id             = MAdapter.AttachmentList.Count + 1,
                    TypeAttachment = "Default",
                    FileSimple     = "addImage",
                    FileUrl        = "addImage"
                };

                MAdapter.Add(attach);
                MAdapter.NotifyDataSetChanged();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
        private void DestroyBasic()
        {
            try
            {
                PublisherAdView?.Destroy();

                TxtAdd          = null !;
                IconTitle       = null !;
                TxtTitle        = null !;
                IconPrice       = null !;
                TxtPrice        = null !;
                TxtCurrency     = null !;
                IconLocation    = null !;
                TxtLocation     = null !;
                IconCategories  = null !;
                TxtCategory     = null !;
                IconAbout       = null !;
                TxtAbout        = null !;
                IconType        = null !;
                RbNew           = null !;
                RbUsed          = null !;
                MAdapter        = null !;
                MRecycler       = null !;
                PublisherAdView = null !;
                CategoryId      = "";
                CurrencyId      = "";
                ProductType     = "";
                PlaceText       = "";
                TypeDialog      = "";
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
        private void DestroyBasic()
        {
            try
            {
                PublisherAdView?.Destroy();

                TxtAdd          = null;
                IconTitle       = null;
                TxtTitle        = null;
                IconPrice       = null;
                TxtPrice        = null;
                TxtCurrency     = null;
                IconLocation    = null;
                TxtLocation     = null;
                IconCategories  = null;
                TxtCategory     = null;
                IconAbout       = null;
                TxtAbout        = null;
                IconType        = null;
                RbNew           = null;
                RbUsed          = null;
                MAdapter        = null;
                MRecycler       = null;
                PublisherAdView = null;
                CategoryId      = "";
                CurrencyId      = "";
                ProductType     = "";
                PlaceText       = "";
                TypeDialog      = "";
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
 private void DestroyBasic()
 {
     try
     {
         MAdapter     = null;
         MRecycler    = null;
         TxtNameAlbum = null;
         TxtAdd       = null;
         IconName     = null;
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
Esempio n. 5
0
        private void DestroyBasic()
        {
            try
            {
                PublisherAdView?.Destroy();
                MAdapter     = null !;
                MRecycler    = null !;
                TxtNameAlbum = null !;
                TxtAdd       = null !;
                IconName     = null !;

                PublisherAdView = null !;
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
        private void DestroyBasic()
        {
            try
            {
                PublisherAdView?.Destroy();
                MAdapter     = null;
                MRecycler    = null;
                TxtNameAlbum = null;
                TxtAdd       = null;
                IconName     = null;

                PublisherAdView = null;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }