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