//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.42
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

[assembly: System.Reflection.AssemblyVersion("1.0.0.0")]
[assembly: System.Windows.Forms.AxHost.TypeLibraryTimeStamp("2007-5-12 13:44:36")]

namespace AxwebPlugin4ge {
    
    
    [System.Windows.Forms.AxHost.ClsidAttribute("{ca538b16-f9bb-44a6-96fb-5c487c12869e}")]
    [System.ComponentModel.DesignTimeVisibleAttribute(true)]
    public class AxGEPluginX : System.Windows.Forms.AxHost {
        
        private webPlugin4ge.IGEPluginX ocx;
        
        private AxGEPluginXEventMulticaster eventMulticaster;
        
        private System.Windows.Forms.AxHost.ConnectionPointCookie cookie;
        
        public AxGEPluginX() : 
                base("ca538b16-f9bb-44a6-96fb-5c487c12869e") {
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        [System.Runtime.InteropServices.DispIdAttribute(201)]
        public virtual bool CtlVisible {
            get {
                if ((this.ocx == null)) {
                    throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("CtlVisible", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
                }
                return this.ocx.Visible;
            }
            set {
                if ((this.ocx == null)) {
                    throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("CtlVisible", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
                }
                this.ocx.Visible = value;
            }
        }
        
        [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        [System.Runtime.InteropServices.DispIdAttribute(203)]
        public virtual bool CtlAutoSize {
            get {
                if ((this.ocx == null)) {
                    throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("CtlAutoSize", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
                }
                return this.ocx.AutoSize;
            }
            set {
                if ((this.ocx == null)) {
                    throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("CtlAutoSize", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
                }
                this.ocx.AutoSize = value;
            }
        }
        
        [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        [System.Runtime.InteropServices.DispIdAttribute(204)]
        public virtual webPlugin4ge.TxActiveFormBorderStyle AxBorderStyle {
            get {
                if ((this.ocx == null)) {
                    throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("AxBorderStyle", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
                }
                return this.ocx.AxBorderStyle;
            }
            set {
                if ((this.ocx == null)) {
                    throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("AxBorderStyle", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
                }
                this.ocx.AxBorderStyle = value;
            }
        }
        
        [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        [System.Runtime.InteropServices.DispIdAttribute(-501)]
        [System.Runtime.InteropServices.ComAliasNameAttribute("System.UInt32")]
        public virtual System.Drawing.Color Color {
            get {
                if ((this.ocx == null)) {
                    throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Color", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
                }
                return GetColorFromOleColor(((uint)(this.ocx.Color)));
            }
            set {
                if ((this.ocx == null)) {
                    throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Color", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
                }
                this.ocx.Color = ((uint)(GetOleColorFromColor(value)));
            }
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        [System.Runtime.InteropServices.DispIdAttribute(209)]
        public virtual bool Active {
            get {
                if ((this.ocx == null)) {
                    throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Active", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
                }
                return this.ocx.Active;
            }
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        [System.Runtime.InteropServices.DispIdAttribute(214)]
        public virtual bool DoubleBuffered {
            get {
                if ((this.ocx == null)) {
                    throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("DoubleBuffered", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
                }
                return this.ocx.DoubleBuffered;
            }
            set {
                if ((this.ocx == null)) {
                    throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("DoubleBuffered", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
                }
                this.ocx.DoubleBuffered = value;
            }
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        [System.Runtime.InteropServices.DispIdAttribute(-514)]
        public override bool Enabled {
            get {
                if (((this.ocx != null) 
                            && (this.PropsValid() == true))) {
                    return this.ocx.Enabled;
                }
                else {
                    return base.Enabled;
                }
            }
            set {
                base.Enabled = value;
                if ((this.ocx != null)) {
                    this.ocx.Enabled = value;
                }
            }
        }
        
        [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        [System.Runtime.InteropServices.DispIdAttribute(218)]
        [System.ComponentModel.Bindable(System.ComponentModel.BindableSupport.Default)]
        public virtual string KML {
            get {
                if ((this.ocx == null)) {
                    throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("KML", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
                }
                return this.ocx.KML;
            }
            set {
                if ((this.ocx == null)) {
                    throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("KML", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
                }
                this.ocx.KML = value;
            }
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        [System.Runtime.InteropServices.DispIdAttribute(211)]
        [System.ComponentModel.Bindable(System.ComponentModel.BindableSupport.Yes)]
        public virtual EARTHLib.ApplicationGE ApplicationGE {
            get {
                if ((this.ocx == null)) {
                    throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ApplicationGE", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
                }
                return this.ocx.ApplicationGE;
            }
        }
        
        [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        [System.Runtime.InteropServices.DispIdAttribute(228)]
        public virtual string topBar {
            get {
                if ((this.ocx == null)) {
                    throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("topBar", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
                }
                return this.ocx.topBar;
            }
            set {
                if ((this.ocx == null)) {
                    throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("topBar", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
                }
                this.ocx.topBar = value;
            }
        }
        
        [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        [System.Runtime.InteropServices.DispIdAttribute(212)]
        public virtual string bottomBar {
            get {
                if ((this.ocx == null)) {
                    throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("bottomBar", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
                }
                return this.ocx.bottomBar;
            }
            set {
                if ((this.ocx == null)) {
                    throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("bottomBar", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
                }
                this.ocx.bottomBar = value;
            }
        }
        
        public event System.EventHandler OnActivate;
        
        public event System.EventHandler OnClick;
        
        public event System.EventHandler OnCreate;
        
        public event System.EventHandler OnDblClick;
        
        public event System.EventHandler OnDestroy;
        
        public event System.EventHandler OnDeactivate;
        
        public event IGEPluginXEvents_OnKeyPressEventHandler OnKeyPress;
        
        public event System.EventHandler OnPaint;
        
        public event System.EventHandler OnInit;
        
        public virtual void openFile(string aFilename) {
            if ((this.ocx == null)) {
                throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("openFile", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
            }
            this.ocx.openFile(aFilename);
        }
        
        public virtual void setLayer(string name, int value) {
            if ((this.ocx == null)) {
                throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("setLayer", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
            }
            this.ocx.setLayer(name, value);
        }
        
        public virtual void setViewParams(string @params) {
            if ((this.ocx == null)) {
                throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("setViewParams", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
            }
            this.ocx.setViewParams(@params);
        }
        
        public virtual object getViewParams() {
            if ((this.ocx == null)) {
                throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("getViewParams", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
            }
            object returnValue = ((object)(this.ocx.getViewParams()));
            return returnValue;
        }
        
        public virtual void loadKml(object kmldata) {
            if ((this.ocx == null)) {
                throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("loadKml", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
            }
            this.ocx.loadKml(kmldata);
        }
        
        public virtual void sendKeys(string keys) {
            if ((this.ocx == null)) {
                throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("sendKeys", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
            }
            this.ocx.sendKeys(keys);
        }
        
        public virtual object getPointOnTerrain(int x, int y) {
            if ((this.ocx == null)) {
                throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("getPointOnTerrain", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
            }
            object returnValue = ((object)(this.ocx.getPointOnTerrain(x, y)));
            return returnValue;
        }
        
        public virtual object findMap(string queryText) {
            if ((this.ocx == null)) {
                throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("findMap", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
            }
            object returnValue = ((object)(this.ocx.findMap(queryText)));
            return returnValue;
        }
        
        public virtual void setValue(string param, double value) {
            if ((this.ocx == null)) {
                throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("setValue", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
            }
            this.ocx.setValue(param, value);
        }
        
        public virtual void decValue(string param, double value) {
            if ((this.ocx == null)) {
                throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("decValue", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
            }
            this.ocx.decValue(param, value);
        }
        
        public virtual void incValue(string param, double value) {
            if ((this.ocx == null)) {
                throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("incValue", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
            }
            this.ocx.incValue(param, value);
        }
        
        public virtual object isReady() {
            if ((this.ocx == null)) {
                throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("isReady", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
            }
            object returnValue = ((object)(this.ocx.isReady()));
            return returnValue;
        }
        
        public virtual object streamingProgressPercentage() {
            if ((this.ocx == null)) {
                throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("streamingProgressPercentage", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
            }
            object returnValue = ((object)(this.ocx.streamingProgressPercentage()));
            return returnValue;
        }
        
        public virtual object writeKml(object name, object kML) {
            if ((this.ocx == null)) {
                throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("writeKml", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
            }
            object returnValue = ((object)(this.ocx.writeKml(name, kML)));
            return returnValue;
        }
        
        public virtual void setFeature(string uri, int visible) {
            if ((this.ocx == null)) {
                throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("setFeature", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
            }
            this.ocx.setFeature(uri, visible);
        }
        
        public virtual object getViewExtents() {
            if ((this.ocx == null)) {
                throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("getViewExtents", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
            }
            object returnValue = ((object)(this.ocx.getViewExtents()));
            return returnValue;
        }
        
        public virtual object saveImage(string filename) {
            if ((this.ocx == null)) {
                throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("saveImage", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
            }
            object returnValue = ((object)(this.ocx.saveImage(filename)));
            return returnValue;
        }
        
        public virtual object getParamValue(string param) {
            if ((this.ocx == null)) {
                throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("getParamValue", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
            }
            object returnValue = ((object)(this.ocx.getParamValue(param)));
            return returnValue;
        }
        
        protected override void CreateSink() {
            try {
                this.eventMulticaster = new AxGEPluginXEventMulticaster(this);
                this.cookie = new System.Windows.Forms.AxHost.ConnectionPointCookie(this.ocx, this.eventMulticaster, typeof(webPlugin4ge.IGEPluginXEvents));
            }
            catch (System.Exception ) {
            }
        }
        
        protected override void DetachSink() {
            try {
                this.cookie.Disconnect();
            }
            catch (System.Exception ) {
            }
        }
        
        protected override void AttachInterfaces() {
            try {
                this.ocx = ((webPlugin4ge.IGEPluginX)(this.GetOcx()));
            }
            catch (System.Exception ) {
            }
        }
        
        internal void RaiseOnOnActivate(object sender, System.EventArgs e) {
            if ((this.OnActivate != null)) {
                this.OnActivate(sender, e);
            }
        }
        
        internal void RaiseOnOnClick(object sender, System.EventArgs e) {
            if ((this.OnClick != null)) {
                this.OnClick(sender, e);
            }
        }
        
        internal void RaiseOnOnCreate(object sender, System.EventArgs e) {
            if ((this.OnCreate != null)) {
                this.OnCreate(sender, e);
            }
        }
        
        internal void RaiseOnOnDblClick(object sender, System.EventArgs e) {
            if ((this.OnDblClick != null)) {
                this.OnDblClick(sender, e);
            }
        }
        
        internal void RaiseOnOnDestroy(object sender, System.EventArgs e) {
            if ((this.OnDestroy != null)) {
                this.OnDestroy(sender, e);
            }
        }
        
        internal void RaiseOnOnDeactivate(object sender, System.EventArgs e) {
            if ((this.OnDeactivate != null)) {
                this.OnDeactivate(sender, e);
            }
        }
        
        internal void RaiseOnOnKeyPress(object sender, IGEPluginXEvents_OnKeyPressEvent e) {
            if ((this.OnKeyPress != null)) {
                this.OnKeyPress(sender, e);
            }
        }
        
        internal void RaiseOnOnPaint(object sender, System.EventArgs e) {
            if ((this.OnPaint != null)) {
                this.OnPaint(sender, e);
            }
        }
        
        internal void RaiseOnOnInit(object sender, System.EventArgs e) {
            if ((this.OnInit != null)) {
                this.OnInit(sender, e);
            }
        }
    }
    
    public delegate void IGEPluginXEvents_OnKeyPressEventHandler(object sender, IGEPluginXEvents_OnKeyPressEvent e);
    
    public class IGEPluginXEvents_OnKeyPressEvent {
        
        public short key;
        
        public IGEPluginXEvents_OnKeyPressEvent(short key) {
            this.key = key;
        }
    }
    
    [System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
    public class AxGEPluginXEventMulticaster : webPlugin4ge.IGEPluginXEvents {
        
        private AxGEPluginX parent;
        
        public AxGEPluginXEventMulticaster(AxGEPluginX parent) {
            this.parent = parent;
        }
        
        public virtual void OnActivate() {
            System.EventArgs onactivateEvent = new System.EventArgs();
            this.parent.RaiseOnOnActivate(this.parent, onactivateEvent);
        }
        
        public virtual void OnClick() {
            System.EventArgs onclickEvent = new System.EventArgs();
            this.parent.RaiseOnOnClick(this.parent, onclickEvent);
        }
        
        public virtual void OnCreate() {
            System.EventArgs oncreateEvent = new System.EventArgs();
            this.parent.RaiseOnOnCreate(this.parent, oncreateEvent);
        }
        
        public virtual void OnDblClick() {
            System.EventArgs ondblclickEvent = new System.EventArgs();
            this.parent.RaiseOnOnDblClick(this.parent, ondblclickEvent);
        }
        
        public virtual void OnDestroy() {
            System.EventArgs ondestroyEvent = new System.EventArgs();
            this.parent.RaiseOnOnDestroy(this.parent, ondestroyEvent);
        }
        
        public virtual void OnDeactivate() {
            System.EventArgs ondeactivateEvent = new System.EventArgs();
            this.parent.RaiseOnOnDeactivate(this.parent, ondeactivateEvent);
        }
        
        public virtual void OnKeyPress(ref short key) {
            IGEPluginXEvents_OnKeyPressEvent onkeypressEvent = new IGEPluginXEvents_OnKeyPressEvent(key);
            this.parent.RaiseOnOnKeyPress(this.parent, onkeypressEvent);
            key = onkeypressEvent.key;
        }
        
        public virtual void OnPaint() {
            System.EventArgs onpaintEvent = new System.EventArgs();
            this.parent.RaiseOnOnPaint(this.parent, onpaintEvent);
        }
        
        public virtual void OnInit() {
            System.EventArgs oninitEvent = new System.EventArgs();
            this.parent.RaiseOnOnInit(this.parent, oninitEvent);
        }
    }
}
