Пример #1
0
        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;
            }
        }
Пример #2
0
 private void cmbListUrl_TextChanged(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(DownloadListManager.GetListName(cmbListUrl.Text)))
     {
         lblListName.Text            =
             lblListDescription.Text =
                 "برای بروزآوری نام و شرح فهرست کلیک کنید.";
     }
     else
     {
         UpdateNameDesc();
     }
 }
Пример #3
0
        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();
            }
        }