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