Ejemplo n.º 1
0
        protected override void Dispose(bool disposing)
        {
            BookInfo = null;

            customTriView   = null;
            downloadButton  = null;
            updateButton    = null;
            expiredButton   = null;
            updateInfoLabel = null;

            progressView = null;

            //
            currencyDateTF   = null;
            titleStatusLabel = null;
            infoButton       = null;
        }
Ejemplo n.º 2
0
        public void ShowProgressView(bool isShow)
        {
            if (!isShow)
            {
                if (downloadPreUpdate)
                {
                    ShowUpdateBtnView(true);
                }
                else
                {
                    ShowDownloadBtnView(true);
                }
            }
            else
            {
                if (downloadButton != null)
                {
                    if (!downloadButton.Hidden)
                    {
                        downloadButton.Hidden = true;
                        downloadPreUpdate     = false;
                    }
                }

                if (updateButton != null)
                {
                    if (!updateButton.Hidden)
                    {
                        updateButton.Hidden = true;
                        downloadPreUpdate   = true;
                    }
                }
            }

            if (progressView == null)
            {
                progressView = new CircularProgressView(progressViewFrame);
                progressView.superViewObj = this;
                AddSubview(progressView);
            }

            progressView.ResetProgress();
            progressView.Hidden = !isShow;
        }