internal WMSServiceExplorerObject(IExplorerParentObject parent, string name, string connectionString) : base(parent as IExplorerObject, typeof(WMSClass)) { _name = name; _connectionString = connectionString; switch (ConfigTextStream.ExtractValue(_connectionString, "service").ToUpper()) { case "WMS": _type = "OGC WMS Service"; break; case "WFS": _type = "OGC WFS Service"; _icon = new WFSConnectionIcon(); break; case "WMS_WFS": _type = "OGC WMS/WFS Service"; _icon = new WMSWFSConnectionIcon(); break; default: _type = "Unknown OGC Service Type!!"; break; } _parent = parent; }
public SubPathParentToolStripItem(MainWindow window, IExplorerParentObject exObject) { if (exObject != null) { base.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; base.Image = gView.Desktop.Wpf.DataExplorer.Properties.Resources.pfeil_r_s; base.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; base.ShowDropDownArrow = false; if (exObject.ChildObjects != null) { foreach (IExplorerObject childObject in exObject.ChildObjects) { SubPathToolStripItem child = new SubPathToolStripItem(childObject); child.Click += new EventHandler(window.SubPathItem_Click); base.DropDownItems.Add(child); } } } base.BackColor = System.Drawing.Color.White; //base.Size = new Size(base.Size.Width, 14); }
public static List <IExplorerObject> ChildObjectsAsync(IExplorerParentObject parentObject) { ChildObjectsList col = new ChildObjectsList(parentObject); Task task = new Task(new Action(col.Get)); task.RunSynchronously(); return(col.ChildObjects); }
public ChildObjectsList(IExplorerParentObject parentObject) { ParentObject = parentObject; }
public WMSNewConnectionExplorerObject(IExplorerParentObject parent) : base(parent as IExplorerObject, null) { _parent = parent; }
public WMSNewConnectionExplorerObject() : base(null, null) { _parent = null; }
async static public Task <SubPathParentToolStripItem> Create(MainWindow window, IExplorerParentObject exObject) { var item = new SubPathParentToolStripItem(); if (exObject != null) { item.DisplayStyle = global::System.Windows.Forms.ToolStripItemDisplayStyle.Image; item.Image = gView.Win.DataExplorer.Properties.Resources.pfeil_r_s; item.ImageScaling = global::System.Windows.Forms.ToolStripItemImageScaling.None; item.ShowDropDownArrow = false; if (await exObject.ChildObjects() != null) { foreach (IExplorerObject childObject in await exObject.ChildObjects()) { SubPathToolStripItem child = new SubPathToolStripItem(childObject); child.Click += new EventHandler(window.SubPathItem_Click); item.DropDownItems.Add(child); } } } item.BackColor = global::System.Drawing.Color.White; //base.Size = new Size(base.Size.Width, 14); return(item); }