public WindowShapeFileTest(ShapeFileInfo shapeFileInfo) { Areas = new List <string>(); try { _sf = new ShapeFile(shapeFileInfo.Filename); if (_sf.Initialize(shapeFileInfo.TableName, (ShapeFile.CoordType)Enum.Parse(typeof(ShapeFile.CoordType), shapeFileInfo.TCoord), (AreaType)Enum.Parse(typeof(AreaType), shapeFileInfo.TArea), shapeFileInfo.Prefix ?? "", shapeFileInfo.Encoding)) { var ail = _sf.AreaInfos; Areas = (from a in ail orderby a.Name select a.Name).ToList(); } } catch { } InitializeComponent(); _browser = new UIControls.WebBrowserControl(); this.webBrowser.Children.Add(_browser); DataContext = this; this.Closed += WindowShapeFileTest_Closed; }
void WindowWebBrowser_Closed(object sender, EventArgs e) { ApplicationData.Instance.OpenWindows.Remove(this); if (_browser != null) { _browser.Dispose(); _browser = null; } }
void WindowWebBrowser_Closed(object sender, EventArgs e) { ApplicationData.Instance.OpenWindows.Remove(this); if (_browser != null) { _browser.Dispose(); _browser = null; } }
public WindowWebBrowser() { InitializeComponent(); _browser = new UIControls.WebBrowserControl(); this.browser.Children.Add(_browser); ApplicationData.Instance.OpenWindows.Add(this); this.Closed += WindowWebBrowser_Closed; }
public WindowWebBrowser() { InitializeComponent(); _browser = new UIControls.WebBrowserControl(); this.browser.Children.Add(_browser); ApplicationData.Instance.OpenWindows.Add(this); this.Closed += WindowWebBrowser_Closed; }