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; }
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; }