public static V4MainCollection Load(string filename)
        {
            FileStream       fileStream = null;
            V4MainCollection res        = null;

            try
            {
                fileStream = File.OpenRead(filename);
                BinaryFormatter binaryFormatter = new BinaryFormatter();
                res = binaryFormatter.Deserialize(fileStream) as V4MainCollection;
                res.CollectionChanged += res.V4MainCollection_CollectionChanged;
            }
            catch (Exception ex)
            {
                Console.WriteLine("Load\n" + ex.Message);
            }
            finally
            {
                if (fileStream != null)
                {
                    fileStream.Close();
                }
            }
            return(res);
        }
        private void V4MainCollection_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
        {
            V4MainCollection sender_ = (V4MainCollection)sender;

            sender_.ChangesWereMade = true;

            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs("max_complex"));
            }
        }