Ejemplo n.º 1
0
 /// <summary>
 /// Provides a deterministic way to create the Main property.
 /// </summary>
 public void CreateMain()
 {
     if (_main == null)
     {
         _main = new MainViewModel();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Provides a deterministic way to delete the Main property.
 /// </summary>
 public void ClearMain()
 {
     _main.Cleanup();
     _main = null;
 }