public SerializationAndDeserialzation Deserialize()
        {
            object        obj;
            XmlSerializer deserializer = new XmlSerializer(typeof(SerializationAndDeserialzation));
            string        fileName     = "LaserMarking.xml";
            string        path         = Path.Combine(Environment.CurrentDirectory, @"Data\", fileName);

            using (StreamReader reader = new StreamReader(path))
            {
                obj = deserializer.Deserialize(reader);
            }
            SerializationAndDeserialzation s = (SerializationAndDeserialzation)obj;

            return(s);
        }
        public override bool Equals(object obj)
        {
            SerializationAndDeserialzation SADobj = obj as SerializationAndDeserialzation;
            bool IsEqualByBlockConditionsList     = true;

            for (int index = 0; index < this.blockConditionsList.Count(); index++)
            {
                if (IsEqualByBlockConditionsList == false)
                {
                    break;
                }
                IsEqualByBlockConditionsList =
                    this.blockConditionsList[index].Setting == SADobj.blockConditionsList[index].Setting ? true : false;
            }

            bool IsEqualByCommonMarkingConditions =
                this.commonMarkingConditions.SettingToLMController == SADobj.commonMarkingConditions.SettingToLMController ? true : false;

            return(IsEqualByBlockConditionsList && IsEqualByCommonMarkingConditions);
        }