private bool Check(MPackage mPackage)
        {
            Saved saved = new Saved();

            if (saved.mPackages.IndexOf(mPackage) > 0)
            {
                return(false);
            }
            return(true);
        }
Exemplo n.º 2
0
        private bool Check(MInterface mInterface)
        {
            Saved saved = new Saved();

            if (saved.mInterfaces.IndexOf(mInterface) > 0)
            {
                return(false);
            }
            return(true);
        }
        private bool Check(MDependence mDependence)
        {
            Saved saved = new Saved();

            if (saved.mDependences.IndexOf(mDependence) > 0)
            {
                return(false);
            }
            return(true);
        }
Exemplo n.º 4
0
        private bool Check(MNote mNote)
        {
            Saved saved = new Saved();

            if (saved.mNotes.IndexOf(mNote) > 0)
            {
                return(false);
            }
            return(true);
        }
        private bool Check(MLimitOfTwoElements mLimitOfTwoElements)
        {
            Saved saved = new Saved();

            if (saved.mLimitOfTwoElements.IndexOf(mLimitOfTwoElements) > 0)
            {
                return(false);
            }
            return(true);
        }
        private bool Check(MRestrictionOr mRestrictionOr)
        {
            Saved saved = new Saved();

            if (saved.mRestrictionsOr.IndexOf(mRestrictionOr) > 0)
            {
                return(false);
            }
            return(true);
        }
        /// <summary>
        /// Метод удаления
        /// </summary>
        public bool Delete(Model model)
        {
            Saved saved = new Saved();
            MLimitOfTwoElements mLimitOfTwoElements = (MLimitOfTwoElements)model;

            if (saved.mLimitOfTwoElements.Remove(mLimitOfTwoElements) == true)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
        /// <summary>
        /// Метод удаления
        /// </summary>
        public bool Delete(Model model)
        {
            Saved          saved          = new Saved();
            MRestrictionOr mRestrictionOr = (MRestrictionOr)model;

            if (saved.mRestrictionsOr.Remove(mRestrictionOr) == true)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 9
0
        /// <summary>
        /// Метод удаления
        /// </summary>
        public bool Delete(Model model)
        {
            Saved      saved      = new Saved();
            MInterface mInterface = (MInterface)model;

            if (saved.mInterfaces.Remove(mInterface) == true)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 10
0
        /// <summary>
        /// Метод удаления
        /// </summary>
        public bool Delete(Model model)
        {
            Saved saved = new Saved();
            MNote mNote = (MNote)model;

            if (saved.mNotes.Remove(mNote) == true)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
        /// <summary>
        /// Метод удаления
        /// </summary>
        public bool Delete(Model model)
        {
            Saved       saved       = new Saved();
            MDependence mDependence = (MDependence)model;

            if (saved.mDependences.Remove(mDependence) == true)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
        /// <summary>
        /// Метод удаления
        /// </summary>
        public bool Delete(Model model)
        {
            Saved    saved    = new Saved();
            MPackage mPackage = (MPackage)model;

            if (saved.mPackages.Remove(mPackage) == true)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 13
0
        /// <summary>
        /// Метод Добавления
        /// </summary>
        public bool Insert(Model model)
        {
            MInterface mInterface = (MInterface)model;

            if (Check(mInterface) == true)
            {
                Saved saved = new Saved();
                saved.mInterfaces.Add(mInterface);
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 14
0
        /// <summary>
        /// Метод Добавления
        /// </summary>
        public bool Insert(Model model)
        {
            MNote mNote = (MNote)model;

            if (Check(mNote) == true)
            {
                Saved saved = new Saved();
                saved.mNotes.Add(mNote);
                return(true);
            }
            else
            {
                return(false);
            }
        }
        /// <summary>
        /// Метод Добавления
        /// </summary>
        public bool Insert(Model model)
        {
            MLimitOfTwoElements mLimitOfTwoElements = (MLimitOfTwoElements)model;

            if (Check(mLimitOfTwoElements) == true)
            {
                Saved saved = new Saved();
                saved.mLimitOfTwoElements.Add(mLimitOfTwoElements);
                return(true);
            }
            else
            {
                return(false);
            }
        }
        /// <summary>
        /// Метод Добавления
        /// </summary>
        public bool Insert(Model model)
        {
            MDependence mDependence = (MDependence)model;

            if (Check(mDependence) == true)
            {
                Saved saved = new Saved();
                saved.mDependences.Add(mDependence);
                return(true);
            }
            else
            {
                return(false);
            }
        }
        /// <summary>
        /// Метод Добавления
        /// </summary>
        public bool Insert(Model model)
        {
            MPackage mPackage = (MPackage)model;

            if (Check(mPackage) == true)
            {
                Saved saved = new Saved();
                saved.mPackages.Add(mPackage);
                return(true);
            }
            else
            {
                return(false);
            }
        }
        /// <summary>
        /// Метод Добавления
        /// </summary>
        public bool Insert(Model model)
        {
            MRestrictionOr mRestrictionOr = (MRestrictionOr)model;

            if (Check(mRestrictionOr) == true)
            {
                Saved saved = new Saved();
                saved.mRestrictionsOr.Add(mRestrictionOr);
                return(true);
            }
            else
            {
                return(false);
            }
        }
        /// <summary>
        /// Метод изменения
        /// </summary>
        public bool Update(Model model)
        {
            Saved saved = new Saved();
            MLimitOfTwoElements mLimitOfTwoElements = (MLimitOfTwoElements)model;

            if (Check(mLimitOfTwoElements) == false)
            {
                int pos = saved.mLimitOfTwoElements.IndexOf(mLimitOfTwoElements);
                saved.mLimitOfTwoElements[pos].Coordinates = mLimitOfTwoElements.Coordinates;
                saved.mLimitOfTwoElements[pos].Size        = mLimitOfTwoElements.Size;
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 20
0
        /// <summary>
        /// Метод изменения
        /// </summary>
        public bool Update(Model model)
        {
            Saved      saved      = new Saved();
            MInterface mInterface = (MInterface)model;

            if (Check(mInterface) == false)
            {
                int pos = saved.mInterfaces.IndexOf(mInterface);
                saved.mInterfaces[pos].Coordinates = mInterface.Coordinates;
                saved.mInterfaces[pos].Size        = mInterface.Size;
                return(true);
            }
            else
            {
                return(false);
            }
        }
        /// <summary>
        /// Метод изменения
        /// </summary>
        public bool Update(Model model)
        {
            Saved    saved    = new Saved();
            MPackage mPackage = (MPackage)model;

            if (Check(mPackage) == false)
            {
                int pos = saved.mPackages.IndexOf(mPackage);
                saved.mPackages[pos].Coordinates = mPackage.Coordinates;
                saved.mPackages[pos].Size        = mPackage.Size;
                return(true);
            }
            else
            {
                return(false);
            }
        }
        /// <summary>
        /// Метод изменения
        /// </summary>
        public bool Update(Model model)
        {
            Saved          saved          = new Saved();
            MRestrictionOr mRestrictionOr = (MRestrictionOr)model;

            if (Check(mRestrictionOr) == false)
            {
                int pos = saved.mRestrictionsOr.IndexOf(mRestrictionOr);
                saved.mRestrictionsOr[pos].Coordinates = mRestrictionOr.Coordinates;
                saved.mRestrictionsOr[pos].Size        = mRestrictionOr.Size;
                return(true);
            }
            else
            {
                return(false);
            }
        }
        /// <summary>
        /// Метод изменения
        /// </summary>
        public bool Update(Model model)
        {
            Saved       saved       = new Saved();
            MDependence mDependence = (MDependence)model;

            if (Check(mDependence) == false)
            {
                int pos = saved.mDependences.IndexOf(mDependence);
                saved.mDependences[pos].CoordinatesX = mDependence.CoordinatesX;
                saved.mDependences[pos].CoordinatesY = mDependence.CoordinatesY;
                saved.mDependences[pos].Size         = mDependence.Size;
                return(true);
            }
            else
            {
                return(false);
            }
        }