public static void CreateNewPicture(string path) { if (!string.IsNullOrEmpty(path)) { File = new File(path); Page.LoadPicture(path); } else { throw new ArgumentNullException(); } }
public static PaintingManager GetInstance(File file, Page page, Tool currentTool) { return _pm ?? (_pm = new PaintingManager(file, page, currentTool)); }
private PaintingManager(File file, Page page, Tool currentTool) { File = file; Page = page; CurrentTool = currentTool; }