Пример #1
0
 public bool JsonOpen(string jsonFile, PaintBitmap paintBitmap)
 {
     _jsonlogic.JsonDeserialize(jsonFile, _storage.GetAll());
     _storage.OpenJson(_jsonlogic.JsonList);
     UpdatePictureJson(paintBitmap);
     return(true);
 }
Пример #2
0
        public void ChanhgeFirgureThickness(PaintBitmap paintBitmap, int thickness)
        {
            IShape shape = _storage.GetShapeForIndex(Numb);

            _storage.RemoveAt(Numb);
            shape.Thickness = thickness;
            _storage.Add(shape);
            UpdatePicture(paintBitmap);
            Numb = _storage.GetCount() - 1;
        }
Пример #3
0
        public void ChangeFigureColor(PaintBitmap paintBitmap, PaintColor color)
        {
            IShape shape = _storage.GetShapeForIndex(Numb);

            _storage.RemoveAt(Numb);
            shape.Color = color;
            _storage.Add(shape);
            UpdatePicture(paintBitmap);
            Numb = _storage.GetCount() - 1;
        }
Пример #4
0
 public Update(List <IShape> shapelist, PaintBitmap bitmap)
 {
     _shapelist     = shapelist;
     _currentBitmap = bitmap;;
 }
Пример #5
0
 public void Delete(PaintBitmap paintBitmap)
 {
     _storage.RemoveAt(Numb);
     UpdatePicture(paintBitmap);
 }
Пример #6
0
        public void UpdatePictureJson(PaintBitmap paintBitmap)
        {
            var update = new Update(_storage.GetAll(), paintBitmap);

            update.UpdatePictureJson();
        }