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(); } }
private void FillGridWithListInfo(string ListFileName) { string Name, Description, MoreInfoUrl; GDBListProcessor.RetrieveProperties(ListFileName, out Name, out Description, out MoreInfoUrl); txtName.Text = Name; txtDescription.Text = Description; txtMoreInfoUrl.Text = MoreInfoUrl; grd.Rows.Clear(); string Exception; List <GDBInfo> gdbs = GDBListProcessor.RetrieveList(ListFileName, out Exception); if (string.IsNullOrEmpty(Exception)) { foreach (GDBInfo gdb in gdbs) { AddGDBInfo(gdb); } } }