Esempio n. 1
0
 public SinProcessStruct(SinProcessStruct sinprocess)
 {
     if (sinprocess != null)
     {
         this.IsSelect       = sinprocess.IsSelect;
         this.AnaProcessType = sinprocess.AnaProcessType;
         this.AnaType        = sinprocess.AnaType;
         this.UpLimitTemp    = sinprocess.UpLimitTemp;
         this.DownLimitTemp  = sinprocess.DownLimitTemp;
         this.UpLimitValue   = sinprocess.UpLimitValue;
         this.DownLimitValue = sinprocess.DownLimitValue;
         this.Calculate      = sinprocess.Calculate;
     }
     else
     {
         this.IsSelect       = false;
         this.AnaProcessType = ProcessType.None;
         this.AnaType        = AnalyzeType.None;
         this.UpLimitTemp    = 30;
         this.DownLimitTemp  = 150;
         this.UpLimitValue   = 3;
         this.DownLimitValue = 1;
         this.Calculate      = 20;
     }
 }
Esempio n. 2
0
        public static bool ISEqual(SinProcessStruct prodata1, SinProcessStruct prodata2)
        {
            bool iscom = true;

            if ((prodata1 == null) && (prodata2 == null))
            {
                iscom = true;
            }
            else
            {
                if ((prodata1 == null) || (prodata2 == null))
                {
                    iscom = false;
                }
                else
                {
                    if (prodata1.AnaProcessType != prodata2.AnaProcessType)
                    {
                        return(false);
                    }
                    if (prodata1.AnaType != prodata2.AnaType)
                    {
                        return(false);
                    }
                    if (prodata1.DownLimitTemp != prodata2.DownLimitTemp)
                    {
                        return(false);
                    }
                    if (prodata1.DownLimitValue != prodata2.DownLimitValue)
                    {
                        return(false);
                    }
                    if (prodata1.IsSelect != prodata2.IsSelect)
                    {
                        return(false);
                    }
                    if (prodata1.UpLimitTemp != prodata2.UpLimitTemp)
                    {
                        return(false);
                    }
                    if (prodata1.UpLimitValue != prodata2.UpLimitValue)
                    {
                        return(false);
                    }
                }
            }
            return(iscom);
        }