aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Properties/Settings.Designer.cs
blob: 46e3b6e7001b6ab3fca155bffd3df1f4887750fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.42000
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace Tango.PPC.UI.Properties {
    
    
    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.1.0.0")]
    internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
        
        private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
        
        public static Settings Default {
            get {
                return defaultInstance;
            }
        }
    }
}
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Tango Observables Generator
// 
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. Do not modify!
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Xml.Serialization;
using Newtonsoft.Json;
using System.Linq;
using Tango.DAL.Remote.DB;
using Tango.Core;
using System.ComponentModel;
using Tango.Core.CustomAttributes;

namespace Tango.BL.Entities
{
    [Table("CATS")]
    public abstract class CatBase : ObservableEntity<Cat>
    {

        public event EventHandler<String> NameChanged;

        public event EventHandler<Byte[]> DataChanged;

        public event EventHandler<LiquidType> LiquidTypeChanged;

        public event EventHandler<Machine> MachineChanged;

        public event EventHandler<Rml> RmlChanged;

        protected String _name;

        /// <summary>
        /// Gets or sets the catbase name.
        /// </summary>

        [Column("NAME")]

        public  String Name
        {
            get 
            {
                return _name; 
            }

            set 
            {
                if (_name != value)
                {
                    _name = value;

                    OnNameChanged(value);

                }
            }
        }

        protected String _machineguid;

        /// <summary>
        /// Gets or sets the catbase machine guid.
        /// </summary>

        [Column("MACHINE_GUID")]
        [ForeignKey("Machine")]

        public  String MachineGuid
        {
            get 
            {
                return _machineguid; 
            }

            set 
            {
                if (_machineguid != value)
                {
                    _machineguid = value;

                }
            }
        }

        protected String _rmlguid;

        /// <summary>
        /// Gets or sets the catbase rml guid.
        /// </summary>

        [Column("RML_GUID")]
        [ForeignKey("Rml")]

        public  String RmlGuid
        {
            get 
            {
                return _rmlguid; 
            }

            set 
            {
                if (_rmlguid != value)
                {
                    _rmlguid = value;

                }
            }
        }

        protected String _liquidtypeguid;

        /// <summary>
        /// Gets or sets the catbase liquid type guid.
        /// </summary>

        [Column("LIQUID_TYPE_GUID")]
        [ForeignKey("LiquidType")]

        public  String LiquidTypeGuid
        {
            get 
            {
                return _liquidtypeguid; 
            }

            set 
            {
                if (_liquidtypeguid != value)
                {
                    _liquidtypeguid = value;

                }
            }
        }

        protected Byte[] _data;

        /// <summary>
        /// Gets or sets the catbase data.
        /// </summary>

        [Column("DATA")]

        public  Byte[] Data
        {
            get 
            {
                return _data; 
            }

            set 
            {
                if (_data != value)
                {
                    _data = value;

                    OnDataChanged(value);

                }
            }
        }

        protected LiquidType _liquidtype;

        /// <summary>
        /// Gets or sets the catbase liquid types.
        /// </summary>

        [XmlIgnore]
        [JsonIgnore]
        public virtual LiquidType LiquidType
        {
            get 
            {
                return _liquidtype; 
            }

            set 
            {
                if (_liquidtype != value)
                {
                    _liquidtype = value;

                    if (LiquidType != null)
                    {
                        LiquidTypeGuid = LiquidType.Guid;
                    }

                    OnLiquidTypeChanged(value);

                }
            }
        }

        protected Machine _machine;

        /// <summary>
        /// Gets or sets the catbase machine.
        /// </summary>

        [XmlIgnore]
        [JsonIgnore]
        public virtual Machine Machine
        {
            get 
            {
                return _machine; 
            }

            set 
            {
                if (_machine != value)
                {
                    _machine = value;

                    if (Machine != null)
                    {
                        MachineGuid = Machine.Guid;
                    }

                    OnMachineChanged(value);

                }
            }
        }

        protected Rml _rml;

        /// <summary>
        /// Gets or sets the catbase rml.
        /// </summary>

        [XmlIgnore]
        [JsonIgnore]
        public virtual Rml Rml
        {
            get 
            {
                return _rml; 
            }

            set 
            {
                if (_rml != value)
                {
                    _rml = value;

                    if (Rml != null)
                    {
                        RmlGuid = Rml.Guid;
                    }

                    OnRmlChanged(value);

                }
            }
        }

        /// <summary>
        /// Called when the Name has changed.
        /// </summary>
        protected virtual void OnNameChanged(String name)
        {
            NameChanged?.Invoke(this, name);
            RaisePropertyChanged(nameof(Name));
        }

        /// <summary>
        /// Called when the Data has changed.
        /// </summary>
        protected virtual void OnDataChanged(Byte[] data)
        {
            DataChanged?.Invoke(this, data);
            RaisePropertyChanged(nameof(Data));
        }

        /// <summary>
        /// Called when the LiquidType has changed.
        /// </summary>
        protected virtual void OnLiquidTypeChanged(LiquidType liquidtype)
        {
            LiquidTypeChanged?.Invoke(this, liquidtype);
            RaisePropertyChanged(nameof(LiquidType));
        }

        /// <summary>
        /// Called when the Machine has changed.
        /// </summary>
        protected virtual void OnMachineChanged(Machine machine)
        {
            MachineChanged?.Invoke(this, machine);
            RaisePropertyChanged(nameof(Machine));
        }

        /// <summary>
        /// Called when the Rml has changed.
        /// </summary>
        protected virtual void OnRmlChanged(Rml rml)
        {
            RmlChanged?.Invoke(this, rml);
            RaisePropertyChanged(nameof(Rml));
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="CatBase" /> class.
        /// </summary>
        public CatBase() : base()
        {
        }
    }
}