public bool JsonOpen(string jsonFile, PaintBitmap paintBitmap) { _jsonlogic.JsonDeserialize(jsonFile, _storage.GetAll()); _storage.OpenJson(_jsonlogic.JsonList); UpdatePictureJson(paintBitmap); return(true); }
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; }
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; }
public Update(List <IShape> shapelist, PaintBitmap bitmap) { _shapelist = shapelist; _currentBitmap = bitmap;; }
public void Delete(PaintBitmap paintBitmap) { _storage.RemoveAt(Numb); UpdatePicture(paintBitmap); }
public void UpdatePictureJson(PaintBitmap paintBitmap) { var update = new Update(_storage.GetAll(), paintBitmap); update.UpdatePictureJson(); }