private void button1_Click(object sender, EventArgs e) { treeOgcCaps.Nodes.Clear(); treeOgcCaps.URL = wmsGetCapstextbox.Text; //if (treeOgcCaps.URL.Contains("seyeqweb01dul")) // treeOgcCaps.Credentials = new NetworkCredential("admin", "admin"); if (UsernameTextBox.Text != "") { NetworkCredential creds = new NetworkCredential(UsernameTextBox.Text, PasswordTextBox.Text); //NetworkCredential basicCred = creds.GetCredential(new Uri(wmsGetCapstextbox.Text), "Basic"); treeOgcCaps.Credentials = creds; } //treeOgcCaps.Version = "1.3.0"; //treeOgcCaps.Proxy = ProxyHelper.DetermineProxyForUrl(treeOgcCaps.URL, true, true, "http://192.168.25.13/proxy.pac", "", ""); //treeOgcCaps.ServiceType = OGCServiceTypes.WMS; //CarbonTools.Core.OGCCapabilities.DataOGCCapabilities foo = new DataOGCCapabilities(); //CarbonTools.Core.WMS.SourceWMS swms = new CarbonTools.Core.WMS.SourceWMS(); //SourceOGCCapabilities bar = new SourceOGCCapabilities(); treeViewProgressBar.Visible = true; treeOgcCaps.GetCapabilities(); //treeOgcCaps.node System.Windows.Forms.Timer treeViewTimer = new System.Windows.Forms.Timer(); treeViewTimer.Enabled = true; treeViewTimer.Interval = 50; treeViewTimer.Tick += new EventHandler(treeViewTimer_Tick); }
private void button1_Click(object sender, EventArgs e) { treeOgcCaps.Nodes.Clear(); treeOgcCaps.URL = wmsGetCapstextbox.Text; treeViewProgressBar.Visible = true; treeOgcCaps.GetCapabilities(); System.Windows.Forms.Timer treeViewTimer = new System.Windows.Forms.Timer(); treeViewTimer.Enabled = true; treeViewTimer.Interval = 50; treeViewTimer.Tick += new EventHandler(treeViewTimer_Tick); }