private void UpdateNameDesc() { lblListName.Text = DownloadListManager.GetListName(cmbListUrl.Text); lblListDescription.Text = DownloadListManager.GetListDescription(cmbListUrl.Text); string moreInfoUrl = DownloadListManager.GetListMoreInfoUrl(cmbListUrl.Text); if (lnkMoreInfo.Visible = !string.IsNullOrEmpty(moreInfoUrl)) { lnkMoreInfo.Tag = moreInfoUrl; } }
private void cmbListUrl_TextChanged(object sender, EventArgs e) { if (string.IsNullOrEmpty(DownloadListManager.GetListName(cmbListUrl.Text))) { lblListName.Text = lblListDescription.Text = "برای بروزآوری نام و شرح فهرست کلیک کنید."; } else { UpdateNameDesc(); } }
private void RetriveNameDesc(object sender, EventArgs e) { if (cmbListUrl.SelectedIndex >= 0 && cmbListUrl.SelectedIndex < 3 && cmbListUrl.Text == cmbListUrl.Items[cmbListUrl.SelectedIndex].ToString()) { return; } string Name, Desc, MoreInfoUrl; if (GDBListProcessor.RetrieveProperties(cmbListUrl.Text, out Name, out Desc, out MoreInfoUrl)) { DownloadListManager.Cache(cmbListUrl.Text, Name, Desc, MoreInfoUrl); UpdateNameDesc(); } }