Click here to Skip to main content
15,896,557 members
Articles / Desktop Programming / Win32

Monitoring desktop windows from a Windows service

Rate me:
Please Sign up or sign in to vote.
4.72/5 (17 votes)
2 Jan 2008CPOL4 min read 85.3K   7.2K   115  
Capture and save desktop windows from a Windows service.
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.832
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

#pragma warning disable 1591

namespace ScreenMonitorLib {
    using System;
    
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
    [Serializable()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.ComponentModel.ToolboxItem(true)]
    [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
    [System.Xml.Serialization.XmlRootAttribute("SnapShotDS")]
    [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
    public partial class SnapShotDS : System.Data.DataSet {
        
        private SnapShotDataTable tableSnapShot;
        
        private WndSettingsDataTable tableWndSettings;
        
        private ApplicationsDataTable tableApplications;
        
        private System.Data.SchemaSerializationMode _schemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public SnapShotDS() {
            this.BeginInit();
            this.InitClass();
            System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
            base.Tables.CollectionChanged += schemaChangedHandler;
            base.Relations.CollectionChanged += schemaChangedHandler;
            this.EndInit();
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        protected SnapShotDS(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : 
                base(info, context, false) {
            if ((this.IsBinarySerialized(info, context) == true)) {
                this.InitVars(false);
                System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
                this.Tables.CollectionChanged += schemaChangedHandler1;
                this.Relations.CollectionChanged += schemaChangedHandler1;
                return;
            }
            string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
            if ((this.DetermineSchemaSerializationMode(info, context) == System.Data.SchemaSerializationMode.IncludeSchema)) {
                System.Data.DataSet ds = new System.Data.DataSet();
                ds.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(strSchema)));
                if ((ds.Tables["SnapShot"] != null)) {
                    base.Tables.Add(new SnapShotDataTable(ds.Tables["SnapShot"]));
                }
                if ((ds.Tables["WndSettings"] != null)) {
                    base.Tables.Add(new WndSettingsDataTable(ds.Tables["WndSettings"]));
                }
                if ((ds.Tables["Applications"] != null)) {
                    base.Tables.Add(new ApplicationsDataTable(ds.Tables["Applications"]));
                }
                this.DataSetName = ds.DataSetName;
                this.Prefix = ds.Prefix;
                this.Namespace = ds.Namespace;
                this.Locale = ds.Locale;
                this.CaseSensitive = ds.CaseSensitive;
                this.EnforceConstraints = ds.EnforceConstraints;
                this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
                this.InitVars();
            }
            else {
                this.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(strSchema)));
            }
            this.GetSerializationData(info, context);
            System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
            base.Tables.CollectionChanged += schemaChangedHandler;
            this.Relations.CollectionChanged += schemaChangedHandler;
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public SnapShotDataTable SnapShot {
            get {
                return this.tableSnapShot;
            }
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public WndSettingsDataTable WndSettings {
            get {
                return this.tableWndSettings;
            }
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public ApplicationsDataTable Applications {
            get {
                return this.tableApplications;
            }
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [System.ComponentModel.BrowsableAttribute(true)]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Visible)]
        public override System.Data.SchemaSerializationMode SchemaSerializationMode {
            get {
                return this._schemaSerializationMode;
            }
            set {
                this._schemaSerializationMode = value;
            }
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        public new System.Data.DataTableCollection Tables {
            get {
                return base.Tables;
            }
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        public new System.Data.DataRelationCollection Relations {
            get {
                return base.Relations;
            }
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        protected override void InitializeDerivedDataSet() {
            this.BeginInit();
            this.InitClass();
            this.EndInit();
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public override System.Data.DataSet Clone() {
            SnapShotDS cln = ((SnapShotDS)(base.Clone()));
            cln.InitVars();
            cln.SchemaSerializationMode = this.SchemaSerializationMode;
            return cln;
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        protected override bool ShouldSerializeTables() {
            return false;
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        protected override bool ShouldSerializeRelations() {
            return false;
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        protected override void ReadXmlSerializable(System.Xml.XmlReader reader) {
            if ((this.DetermineSchemaSerializationMode(reader) == System.Data.SchemaSerializationMode.IncludeSchema)) {
                this.Reset();
                System.Data.DataSet ds = new System.Data.DataSet();
                ds.ReadXml(reader);
                if ((ds.Tables["SnapShot"] != null)) {
                    base.Tables.Add(new SnapShotDataTable(ds.Tables["SnapShot"]));
                }
                if ((ds.Tables["WndSettings"] != null)) {
                    base.Tables.Add(new WndSettingsDataTable(ds.Tables["WndSettings"]));
                }
                if ((ds.Tables["Applications"] != null)) {
                    base.Tables.Add(new ApplicationsDataTable(ds.Tables["Applications"]));
                }
                this.DataSetName = ds.DataSetName;
                this.Prefix = ds.Prefix;
                this.Namespace = ds.Namespace;
                this.Locale = ds.Locale;
                this.CaseSensitive = ds.CaseSensitive;
                this.EnforceConstraints = ds.EnforceConstraints;
                this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
                this.InitVars();
            }
            else {
                this.ReadXml(reader);
                this.InitVars();
            }
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
            System.IO.MemoryStream stream = new System.IO.MemoryStream();
            this.WriteXmlSchema(new System.Xml.XmlTextWriter(stream, null));
            stream.Position = 0;
            return System.Xml.Schema.XmlSchema.Read(new System.Xml.XmlTextReader(stream), null);
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        internal void InitVars() {
            this.InitVars(true);
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        internal void InitVars(bool initTable) {
            this.tableSnapShot = ((SnapShotDataTable)(base.Tables["SnapShot"]));
            if ((initTable == true)) {
                if ((this.tableSnapShot != null)) {
                    this.tableSnapShot.InitVars();
                }
            }
            this.tableWndSettings = ((WndSettingsDataTable)(base.Tables["WndSettings"]));
            if ((initTable == true)) {
                if ((this.tableWndSettings != null)) {
                    this.tableWndSettings.InitVars();
                }
            }
            this.tableApplications = ((ApplicationsDataTable)(base.Tables["Applications"]));
            if ((initTable == true)) {
                if ((this.tableApplications != null)) {
                    this.tableApplications.InitVars();
                }
            }
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private void InitClass() {
            this.DataSetName = "SnapShotDS";
            this.Prefix = "";
            this.Namespace = "http://tempuri.org/SnapShotDS.xsd";
            this.EnforceConstraints = true;
            this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
            this.tableSnapShot = new SnapShotDataTable();
            base.Tables.Add(this.tableSnapShot);
            this.tableWndSettings = new WndSettingsDataTable();
            base.Tables.Add(this.tableWndSettings);
            this.tableApplications = new ApplicationsDataTable();
            base.Tables.Add(this.tableApplications);
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private bool ShouldSerializeSnapShot() {
            return false;
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private bool ShouldSerializeWndSettings() {
            return false;
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private bool ShouldSerializeApplications() {
            return false;
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
            if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
                this.InitVars();
            }
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public static System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(System.Xml.Schema.XmlSchemaSet xs) {
            SnapShotDS ds = new SnapShotDS();
            System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
            System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
            xs.Add(ds.GetSchemaSerializable());
            System.Xml.Schema.XmlSchemaAny any = new System.Xml.Schema.XmlSchemaAny();
            any.Namespace = ds.Namespace;
            sequence.Items.Add(any);
            type.Particle = sequence;
            return type;
        }
        
        public delegate void SnapShotRowChangeEventHandler(object sender, SnapShotRowChangeEvent e);
        
        public delegate void WndSettingsRowChangeEventHandler(object sender, WndSettingsRowChangeEvent e);
        
        public delegate void ApplicationsRowChangeEventHandler(object sender, ApplicationsRowChangeEvent e);
        
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        [System.Serializable()]
        [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
        public partial class SnapShotDataTable : System.Data.DataTable, System.Collections.IEnumerable {
            
            private System.Data.DataColumn columnIndex;
            
            private System.Data.DataColumn columnTime;
            
            private System.Data.DataColumn columnIsForegroundWnd;
            
            private System.Data.DataColumn columnIsCliendWnd;
            
            private System.Data.DataColumn columnFileName;
            
            private System.Data.DataColumn columnUser;
            
            private System.Data.DataColumn columnProcessName;
            
            private System.Data.DataColumn columnIsMinimized;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public SnapShotDataTable() {
                this.TableName = "SnapShot";
                this.BeginInit();
                this.InitClass();
                this.EndInit();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal SnapShotDataTable(System.Data.DataTable table) {
                this.TableName = table.TableName;
                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
                    this.CaseSensitive = table.CaseSensitive;
                }
                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
                    this.Locale = table.Locale;
                }
                if ((table.Namespace != table.DataSet.Namespace)) {
                    this.Namespace = table.Namespace;
                }
                this.Prefix = table.Prefix;
                this.MinimumCapacity = table.MinimumCapacity;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected SnapShotDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : 
                    base(info, context) {
                this.InitVars();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn IndexColumn {
                get {
                    return this.columnIndex;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn TimeColumn {
                get {
                    return this.columnTime;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn IsForegroundWndColumn {
                get {
                    return this.columnIsForegroundWnd;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn IsCliendWndColumn {
                get {
                    return this.columnIsCliendWnd;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn FileNameColumn {
                get {
                    return this.columnFileName;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn UserColumn {
                get {
                    return this.columnUser;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn ProcessNameColumn {
                get {
                    return this.columnProcessName;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn IsMinimizedColumn {
                get {
                    return this.columnIsMinimized;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public SnapShotRow this[int index] {
                get {
                    return ((SnapShotRow)(this.Rows[index]));
                }
            }
            
            public event SnapShotRowChangeEventHandler SnapShotRowChanging;
            
            public event SnapShotRowChangeEventHandler SnapShotRowChanged;
            
            public event SnapShotRowChangeEventHandler SnapShotRowDeleting;
            
            public event SnapShotRowChangeEventHandler SnapShotRowDeleted;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void AddSnapShotRow(SnapShotRow row) {
                this.Rows.Add(row);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public SnapShotRow AddSnapShotRow(System.DateTime Time, bool IsForegroundWnd, bool IsCliendWnd, System.Guid FileName, string User, string ProcessName, bool IsMinimized) {
                SnapShotRow rowSnapShotRow = ((SnapShotRow)(this.NewRow()));
                rowSnapShotRow.ItemArray = new object[] {
                        null,
                        Time,
                        IsForegroundWnd,
                        IsCliendWnd,
                        FileName,
                        User,
                        ProcessName,
                        IsMinimized};
                this.Rows.Add(rowSnapShotRow);
                return rowSnapShotRow;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public SnapShotRow FindByIndex(int Index) {
                return ((SnapShotRow)(this.Rows.Find(new object[] {
                            Index})));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public virtual System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public override System.Data.DataTable Clone() {
                SnapShotDataTable cln = ((SnapShotDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Data.DataTable CreateInstance() {
                return new SnapShotDataTable();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal void InitVars() {
                this.columnIndex = base.Columns["Index"];
                this.columnTime = base.Columns["Time"];
                this.columnIsForegroundWnd = base.Columns["IsForegroundWnd"];
                this.columnIsCliendWnd = base.Columns["IsCliendWnd"];
                this.columnFileName = base.Columns["FileName"];
                this.columnUser = base.Columns["User"];
                this.columnProcessName = base.Columns["ProcessName"];
                this.columnIsMinimized = base.Columns["IsMinimized"];
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            private void InitClass() {
                this.columnIndex = new System.Data.DataColumn("Index", typeof(int), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnIndex);
                this.columnTime = new System.Data.DataColumn("Time", typeof(System.DateTime), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnTime);
                this.columnIsForegroundWnd = new System.Data.DataColumn("IsForegroundWnd", typeof(bool), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnIsForegroundWnd);
                this.columnIsCliendWnd = new System.Data.DataColumn("IsCliendWnd", typeof(bool), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnIsCliendWnd);
                this.columnFileName = new System.Data.DataColumn("FileName", typeof(System.Guid), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnFileName);
                this.columnUser = new System.Data.DataColumn("User", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnUser);
                this.columnProcessName = new System.Data.DataColumn("ProcessName", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnProcessName);
                this.columnIsMinimized = new System.Data.DataColumn("IsMinimized", typeof(bool), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnIsMinimized);
                this.Constraints.Add(new System.Data.UniqueConstraint("SnapShotKey1", new System.Data.DataColumn[] {
                                this.columnIndex}, true));
                this.columnIndex.AutoIncrement = true;
                this.columnIndex.AllowDBNull = false;
                this.columnIndex.Unique = true;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public SnapShotRow NewSnapShotRow() {
                return ((SnapShotRow)(this.NewRow()));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
                return new SnapShotRow(builder);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Type GetRowType() {
                return typeof(SnapShotRow);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.SnapShotRowChanged != null)) {
                    this.SnapShotRowChanged(this, new SnapShotRowChangeEvent(((SnapShotRow)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.SnapShotRowChanging != null)) {
                    this.SnapShotRowChanging(this, new SnapShotRowChangeEvent(((SnapShotRow)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.SnapShotRowDeleted != null)) {
                    this.SnapShotRowDeleted(this, new SnapShotRowChangeEvent(((SnapShotRow)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.SnapShotRowDeleting != null)) {
                    this.SnapShotRowDeleting(this, new SnapShotRowChangeEvent(((SnapShotRow)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void RemoveSnapShotRow(SnapShotRow row) {
                this.Rows.Remove(row);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) {
                System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
                System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
                SnapShotDS ds = new SnapShotDS();
                xs.Add(ds.GetSchemaSerializable());
                System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny();
                any1.Namespace = "http://www.w3.org/2001/XMLSchema";
                any1.MinOccurs = new decimal(0);
                any1.MaxOccurs = decimal.MaxValue;
                any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any1);
                System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny();
                any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
                any2.MinOccurs = new decimal(1);
                any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any2);
                System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute();
                attribute1.Name = "namespace";
                attribute1.FixedValue = ds.Namespace;
                type.Attributes.Add(attribute1);
                System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute();
                attribute2.Name = "tableTypeName";
                attribute2.FixedValue = "SnapShotDataTable";
                type.Attributes.Add(attribute2);
                type.Particle = sequence;
                return type;
            }
        }
        
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        [System.Serializable()]
        [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
        public partial class WndSettingsDataTable : System.Data.DataTable, System.Collections.IEnumerable {
            
            private System.Data.DataColumn columnClassName;
            
            private System.Data.DataColumn columnClientWindow;
            
            private System.Data.DataColumn columnFrequency;
            
            private System.Data.DataColumn columnForegroundOnly;
            
            private System.Data.DataColumn columnGetIconicWnd;
            
            private System.Data.DataColumn columnProcessName;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public WndSettingsDataTable() {
                this.TableName = "WndSettings";
                this.BeginInit();
                this.InitClass();
                this.EndInit();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal WndSettingsDataTable(System.Data.DataTable table) {
                this.TableName = table.TableName;
                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
                    this.CaseSensitive = table.CaseSensitive;
                }
                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
                    this.Locale = table.Locale;
                }
                if ((table.Namespace != table.DataSet.Namespace)) {
                    this.Namespace = table.Namespace;
                }
                this.Prefix = table.Prefix;
                this.MinimumCapacity = table.MinimumCapacity;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected WndSettingsDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : 
                    base(info, context) {
                this.InitVars();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn ClassNameColumn {
                get {
                    return this.columnClassName;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn ClientWindowColumn {
                get {
                    return this.columnClientWindow;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn FrequencyColumn {
                get {
                    return this.columnFrequency;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn ForegroundOnlyColumn {
                get {
                    return this.columnForegroundOnly;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn GetIconicWndColumn {
                get {
                    return this.columnGetIconicWnd;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn ProcessNameColumn {
                get {
                    return this.columnProcessName;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public WndSettingsRow this[int index] {
                get {
                    return ((WndSettingsRow)(this.Rows[index]));
                }
            }
            
            public event WndSettingsRowChangeEventHandler WndSettingsRowChanging;
            
            public event WndSettingsRowChangeEventHandler WndSettingsRowChanged;
            
            public event WndSettingsRowChangeEventHandler WndSettingsRowDeleting;
            
            public event WndSettingsRowChangeEventHandler WndSettingsRowDeleted;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void AddWndSettingsRow(WndSettingsRow row) {
                this.Rows.Add(row);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public WndSettingsRow AddWndSettingsRow(string ClassName, bool ClientWindow, uint Frequency, bool ForegroundOnly, bool GetIconicWnd, string ProcessName) {
                WndSettingsRow rowWndSettingsRow = ((WndSettingsRow)(this.NewRow()));
                rowWndSettingsRow.ItemArray = new object[] {
                        ClassName,
                        ClientWindow,
                        Frequency,
                        ForegroundOnly,
                        GetIconicWnd,
                        ProcessName};
                this.Rows.Add(rowWndSettingsRow);
                return rowWndSettingsRow;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public WndSettingsRow FindByClassName(string ClassName) {
                return ((WndSettingsRow)(this.Rows.Find(new object[] {
                            ClassName})));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public virtual System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public override System.Data.DataTable Clone() {
                WndSettingsDataTable cln = ((WndSettingsDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Data.DataTable CreateInstance() {
                return new WndSettingsDataTable();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal void InitVars() {
                this.columnClassName = base.Columns["ClassName"];
                this.columnClientWindow = base.Columns["ClientWindow"];
                this.columnFrequency = base.Columns["Frequency"];
                this.columnForegroundOnly = base.Columns["ForegroundOnly"];
                this.columnGetIconicWnd = base.Columns["GetIconicWnd"];
                this.columnProcessName = base.Columns["ProcessName"];
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            private void InitClass() {
                this.columnClassName = new System.Data.DataColumn("ClassName", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnClassName);
                this.columnClientWindow = new System.Data.DataColumn("ClientWindow", typeof(bool), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnClientWindow);
                this.columnFrequency = new System.Data.DataColumn("Frequency", typeof(uint), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnFrequency);
                this.columnForegroundOnly = new System.Data.DataColumn("ForegroundOnly", typeof(bool), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnForegroundOnly);
                this.columnGetIconicWnd = new System.Data.DataColumn("GetIconicWnd", typeof(bool), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnGetIconicWnd);
                this.columnProcessName = new System.Data.DataColumn("ProcessName", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnProcessName);
                this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
                                this.columnClassName}, true));
                this.Constraints.Add(new System.Data.UniqueConstraint("Constraint2", new System.Data.DataColumn[] {
                                this.columnProcessName}, false));
                this.columnClassName.AllowDBNull = false;
                this.columnClassName.Unique = true;
                this.columnClassName.DefaultValue = ((string)(""));
                this.columnForegroundOnly.DefaultValue = ((bool)(false));
                this.columnProcessName.Unique = true;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public WndSettingsRow NewWndSettingsRow() {
                return ((WndSettingsRow)(this.NewRow()));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
                return new WndSettingsRow(builder);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Type GetRowType() {
                return typeof(WndSettingsRow);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.WndSettingsRowChanged != null)) {
                    this.WndSettingsRowChanged(this, new WndSettingsRowChangeEvent(((WndSettingsRow)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.WndSettingsRowChanging != null)) {
                    this.WndSettingsRowChanging(this, new WndSettingsRowChangeEvent(((WndSettingsRow)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.WndSettingsRowDeleted != null)) {
                    this.WndSettingsRowDeleted(this, new WndSettingsRowChangeEvent(((WndSettingsRow)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.WndSettingsRowDeleting != null)) {
                    this.WndSettingsRowDeleting(this, new WndSettingsRowChangeEvent(((WndSettingsRow)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void RemoveWndSettingsRow(WndSettingsRow row) {
                this.Rows.Remove(row);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) {
                System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
                System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
                SnapShotDS ds = new SnapShotDS();
                xs.Add(ds.GetSchemaSerializable());
                System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny();
                any1.Namespace = "http://www.w3.org/2001/XMLSchema";
                any1.MinOccurs = new decimal(0);
                any1.MaxOccurs = decimal.MaxValue;
                any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any1);
                System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny();
                any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
                any2.MinOccurs = new decimal(1);
                any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any2);
                System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute();
                attribute1.Name = "namespace";
                attribute1.FixedValue = ds.Namespace;
                type.Attributes.Add(attribute1);
                System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute();
                attribute2.Name = "tableTypeName";
                attribute2.FixedValue = "WndSettingsDataTable";
                type.Attributes.Add(attribute2);
                type.Particle = sequence;
                return type;
            }
        }
        
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        [System.Serializable()]
        [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
        public partial class ApplicationsDataTable : System.Data.DataTable, System.Collections.IEnumerable {
            
            private System.Data.DataColumn columnClassName;
            
            private System.Data.DataColumn columnCaption;
            
            private System.Data.DataColumn columnProcessName;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public ApplicationsDataTable() {
                this.TableName = "Applications";
                this.BeginInit();
                this.InitClass();
                this.EndInit();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal ApplicationsDataTable(System.Data.DataTable table) {
                this.TableName = table.TableName;
                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
                    this.CaseSensitive = table.CaseSensitive;
                }
                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
                    this.Locale = table.Locale;
                }
                if ((table.Namespace != table.DataSet.Namespace)) {
                    this.Namespace = table.Namespace;
                }
                this.Prefix = table.Prefix;
                this.MinimumCapacity = table.MinimumCapacity;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected ApplicationsDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : 
                    base(info, context) {
                this.InitVars();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn ClassNameColumn {
                get {
                    return this.columnClassName;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn CaptionColumn {
                get {
                    return this.columnCaption;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn ProcessNameColumn {
                get {
                    return this.columnProcessName;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public ApplicationsRow this[int index] {
                get {
                    return ((ApplicationsRow)(this.Rows[index]));
                }
            }
            
            public event ApplicationsRowChangeEventHandler ApplicationsRowChanging;
            
            public event ApplicationsRowChangeEventHandler ApplicationsRowChanged;
            
            public event ApplicationsRowChangeEventHandler ApplicationsRowDeleting;
            
            public event ApplicationsRowChangeEventHandler ApplicationsRowDeleted;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void AddApplicationsRow(ApplicationsRow row) {
                this.Rows.Add(row);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public ApplicationsRow AddApplicationsRow(string ClassName, string Caption, string ProcessName) {
                ApplicationsRow rowApplicationsRow = ((ApplicationsRow)(this.NewRow()));
                rowApplicationsRow.ItemArray = new object[] {
                        ClassName,
                        Caption,
                        ProcessName};
                this.Rows.Add(rowApplicationsRow);
                return rowApplicationsRow;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public ApplicationsRow FindByProcessName(string ProcessName) {
                return ((ApplicationsRow)(this.Rows.Find(new object[] {
                            ProcessName})));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public virtual System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public override System.Data.DataTable Clone() {
                ApplicationsDataTable cln = ((ApplicationsDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Data.DataTable CreateInstance() {
                return new ApplicationsDataTable();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal void InitVars() {
                this.columnClassName = base.Columns["ClassName"];
                this.columnCaption = base.Columns["Caption"];
                this.columnProcessName = base.Columns["ProcessName"];
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            private void InitClass() {
                this.columnClassName = new System.Data.DataColumn("ClassName", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnClassName);
                this.columnCaption = new System.Data.DataColumn("Caption", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnCaption);
                this.columnProcessName = new System.Data.DataColumn("ProcessName", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnProcessName);
                this.Constraints.Add(new System.Data.UniqueConstraint("ApplicationsKey1", new System.Data.DataColumn[] {
                                this.columnProcessName}, true));
                this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
                                this.columnClassName}, false));
                this.columnClassName.Unique = true;
                this.columnProcessName.AllowDBNull = false;
                this.columnProcessName.Unique = true;
                this.columnProcessName.DefaultValue = ((string)("\"\""));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public ApplicationsRow NewApplicationsRow() {
                return ((ApplicationsRow)(this.NewRow()));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
                return new ApplicationsRow(builder);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Type GetRowType() {
                return typeof(ApplicationsRow);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.ApplicationsRowChanged != null)) {
                    this.ApplicationsRowChanged(this, new ApplicationsRowChangeEvent(((ApplicationsRow)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.ApplicationsRowChanging != null)) {
                    this.ApplicationsRowChanging(this, new ApplicationsRowChangeEvent(((ApplicationsRow)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.ApplicationsRowDeleted != null)) {
                    this.ApplicationsRowDeleted(this, new ApplicationsRowChangeEvent(((ApplicationsRow)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.ApplicationsRowDeleting != null)) {
                    this.ApplicationsRowDeleting(this, new ApplicationsRowChangeEvent(((ApplicationsRow)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void RemoveApplicationsRow(ApplicationsRow row) {
                this.Rows.Remove(row);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) {
                System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
                System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
                SnapShotDS ds = new SnapShotDS();
                xs.Add(ds.GetSchemaSerializable());
                System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny();
                any1.Namespace = "http://www.w3.org/2001/XMLSchema";
                any1.MinOccurs = new decimal(0);
                any1.MaxOccurs = decimal.MaxValue;
                any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any1);
                System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny();
                any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
                any2.MinOccurs = new decimal(1);
                any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any2);
                System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute();
                attribute1.Name = "namespace";
                attribute1.FixedValue = ds.Namespace;
                type.Attributes.Add(attribute1);
                System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute();
                attribute2.Name = "tableTypeName";
                attribute2.FixedValue = "ApplicationsDataTable";
                type.Attributes.Add(attribute2);
                type.Particle = sequence;
                return type;
            }
        }
        
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        public partial class SnapShotRow : System.Data.DataRow {
            
            private SnapShotDataTable tableSnapShot;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal SnapShotRow(System.Data.DataRowBuilder rb) : 
                    base(rb) {
                this.tableSnapShot = ((SnapShotDataTable)(this.Table));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public int Index {
                get {
                    return ((int)(this[this.tableSnapShot.IndexColumn]));
                }
                set {
                    this[this.tableSnapShot.IndexColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.DateTime Time {
                get {
                    try {
                        return ((System.DateTime)(this[this.tableSnapShot.TimeColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("The value for column \'Time\' in table \'SnapShot\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableSnapShot.TimeColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsForegroundWnd {
                get {
                    try {
                        return ((bool)(this[this.tableSnapShot.IsForegroundWndColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("The value for column \'IsForegroundWnd\' in table \'SnapShot\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableSnapShot.IsForegroundWndColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsCliendWnd {
                get {
                    try {
                        return ((bool)(this[this.tableSnapShot.IsCliendWndColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("The value for column \'IsCliendWnd\' in table \'SnapShot\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableSnapShot.IsCliendWndColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Guid FileName {
                get {
                    try {
                        return ((System.Guid)(this[this.tableSnapShot.FileNameColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("The value for column \'FileName\' in table \'SnapShot\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableSnapShot.FileNameColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string User {
                get {
                    try {
                        return ((string)(this[this.tableSnapShot.UserColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("The value for column \'User\' in table \'SnapShot\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableSnapShot.UserColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string ProcessName {
                get {
                    try {
                        return ((string)(this[this.tableSnapShot.ProcessNameColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("The value for column \'ProcessName\' in table \'SnapShot\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableSnapShot.ProcessNameColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsMinimized {
                get {
                    try {
                        return ((bool)(this[this.tableSnapShot.IsMinimizedColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("The value for column \'IsMinimized\' in table \'SnapShot\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableSnapShot.IsMinimizedColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsTimeNull() {
                return this.IsNull(this.tableSnapShot.TimeColumn);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetTimeNull() {
                this[this.tableSnapShot.TimeColumn] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsIsForegroundWndNull() {
                return this.IsNull(this.tableSnapShot.IsForegroundWndColumn);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetIsForegroundWndNull() {
                this[this.tableSnapShot.IsForegroundWndColumn] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsIsCliendWndNull() {
                return this.IsNull(this.tableSnapShot.IsCliendWndColumn);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetIsCliendWndNull() {
                this[this.tableSnapShot.IsCliendWndColumn] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsFileNameNull() {
                return this.IsNull(this.tableSnapShot.FileNameColumn);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetFileNameNull() {
                this[this.tableSnapShot.FileNameColumn] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsUserNull() {
                return this.IsNull(this.tableSnapShot.UserColumn);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetUserNull() {
                this[this.tableSnapShot.UserColumn] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsProcessNameNull() {
                return this.IsNull(this.tableSnapShot.ProcessNameColumn);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetProcessNameNull() {
                this[this.tableSnapShot.ProcessNameColumn] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsIsMinimizedNull() {
                return this.IsNull(this.tableSnapShot.IsMinimizedColumn);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetIsMinimizedNull() {
                this[this.tableSnapShot.IsMinimizedColumn] = System.Convert.DBNull;
            }
        }
        
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        public partial class WndSettingsRow : System.Data.DataRow {
            
            private WndSettingsDataTable tableWndSettings;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal WndSettingsRow(System.Data.DataRowBuilder rb) : 
                    base(rb) {
                this.tableWndSettings = ((WndSettingsDataTable)(this.Table));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string ClassName {
                get {
                    return ((string)(this[this.tableWndSettings.ClassNameColumn]));
                }
                set {
                    this[this.tableWndSettings.ClassNameColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool ClientWindow {
                get {
                    try {
                        return ((bool)(this[this.tableWndSettings.ClientWindowColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("The value for column \'ClientWindow\' in table \'WndSettings\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableWndSettings.ClientWindowColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public uint Frequency {
                get {
                    try {
                        return ((uint)(this[this.tableWndSettings.FrequencyColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("The value for column \'Frequency\' in table \'WndSettings\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableWndSettings.FrequencyColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool ForegroundOnly {
                get {
                    try {
                        return ((bool)(this[this.tableWndSettings.ForegroundOnlyColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("The value for column \'ForegroundOnly\' in table \'WndSettings\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableWndSettings.ForegroundOnlyColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool GetIconicWnd {
                get {
                    try {
                        return ((bool)(this[this.tableWndSettings.GetIconicWndColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("The value for column \'GetIconicWnd\' in table \'WndSettings\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableWndSettings.GetIconicWndColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string ProcessName {
                get {
                    try {
                        return ((string)(this[this.tableWndSettings.ProcessNameColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("The value for column \'ProcessName\' in table \'WndSettings\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableWndSettings.ProcessNameColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsClientWindowNull() {
                return this.IsNull(this.tableWndSettings.ClientWindowColumn);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetClientWindowNull() {
                this[this.tableWndSettings.ClientWindowColumn] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsFrequencyNull() {
                return this.IsNull(this.tableWndSettings.FrequencyColumn);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetFrequencyNull() {
                this[this.tableWndSettings.FrequencyColumn] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsForegroundOnlyNull() {
                return this.IsNull(this.tableWndSettings.ForegroundOnlyColumn);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetForegroundOnlyNull() {
                this[this.tableWndSettings.ForegroundOnlyColumn] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsGetIconicWndNull() {
                return this.IsNull(this.tableWndSettings.GetIconicWndColumn);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetGetIconicWndNull() {
                this[this.tableWndSettings.GetIconicWndColumn] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsProcessNameNull() {
                return this.IsNull(this.tableWndSettings.ProcessNameColumn);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetProcessNameNull() {
                this[this.tableWndSettings.ProcessNameColumn] = System.Convert.DBNull;
            }
        }
        
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        public partial class ApplicationsRow : System.Data.DataRow {
            
            private ApplicationsDataTable tableApplications;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal ApplicationsRow(System.Data.DataRowBuilder rb) : 
                    base(rb) {
                this.tableApplications = ((ApplicationsDataTable)(this.Table));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string ClassName {
                get {
                    try {
                        return ((string)(this[this.tableApplications.ClassNameColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("The value for column \'ClassName\' in table \'Applications\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableApplications.ClassNameColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string Caption {
                get {
                    try {
                        return ((string)(this[this.tableApplications.CaptionColumn]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("The value for column \'Caption\' in table \'Applications\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableApplications.CaptionColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string ProcessName {
                get {
                    return ((string)(this[this.tableApplications.ProcessNameColumn]));
                }
                set {
                    this[this.tableApplications.ProcessNameColumn] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsClassNameNull() {
                return this.IsNull(this.tableApplications.ClassNameColumn);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetClassNameNull() {
                this[this.tableApplications.ClassNameColumn] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsCaptionNull() {
                return this.IsNull(this.tableApplications.CaptionColumn);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetCaptionNull() {
                this[this.tableApplications.CaptionColumn] = System.Convert.DBNull;
            }
        }
        
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        public class SnapShotRowChangeEvent : System.EventArgs {
            
            private SnapShotRow eventRow;
            
            private System.Data.DataRowAction eventAction;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public SnapShotRowChangeEvent(SnapShotRow row, System.Data.DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public SnapShotRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        public class WndSettingsRowChangeEvent : System.EventArgs {
            
            private WndSettingsRow eventRow;
            
            private System.Data.DataRowAction eventAction;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public WndSettingsRowChangeEvent(WndSettingsRow row, System.Data.DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public WndSettingsRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        public class ApplicationsRowChangeEvent : System.EventArgs {
            
            private ApplicationsRow eventRow;
            
            private System.Data.DataRowAction eventAction;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public ApplicationsRowChangeEvent(ApplicationsRow row, System.Data.DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public ApplicationsRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

#pragma warning restore 1591

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
Decebal Mihailescu is a software engineer with interest in .Net, C# and C++.

Comments and Discussions