/// <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); }
// Update changes made to this object on screen. private void Update() { CanvasModel.GetCanvasModel().Update(this); }