예제 #1
0
 /// <summary>
 /// Get the single canvas model.
 ///
 /// Singelton get instance.
 /// </summary>
 /// <returns>Returns instance, or null if user interface is not ready.</returns>
 public static CanvasModel GetCanvasModel()
 {
     if (instance == null)
     {
         if (MainPage.CanvasView == null)
         {
             return(null);
         }
         instance = new CanvasModel();
     }
     return(instance);
 }
예제 #2
0
 // Update changes made to this object on screen.
 private void Update()
 {
     CanvasModel.GetCanvasModel().Update(this);
 }