Example #1
0
 void OnSavetoprojectbuttonClicked(object sender, System.EventArgs e)
 {
     drawing.RegionOfInterest = blackboard.RegionOfInterest;
     if (!play.Drawings.Contains(drawing))
     {
         play.Drawings.Add(drawing);
     }
     drawing.Miniature = blackboard.Save();
     drawing.Miniature.ScaleInplace(Constants.MAX_THUMBNAIL_SIZE,
                                    Constants.MAX_THUMBNAIL_SIZE);
     play.UpdateMiniature();
     drawing = null;
     Respond(ResponseType.Accept);
 }