Exemple #1
0
        public bool DeleteSize(Size size)
        {
            Sizes sizes = new Sizes();

            sizes.SelectAll();
            sizes.Delete(size);
            return(sizes.Save());
        }
Exemple #2
0
        public bool ModifySize(Size oldSize, Size newSize)
        {
            Sizes sizes = new Sizes();

            sizes.SelectAll();
            if (sizes.Modify(oldSize, newSize))
            {
                return(sizes.Save());
            }
            else
            {
                return(false);
            }
        }
Exemple #3
0
        public bool AddSize(Size size)
        {
            Sizes sizes = new Sizes();

            sizes.SelectAll();
            if (sizes.Add(size))
            {
                return(sizes.Save());
            }
            else
            {
                return(false);
            }
        }