/// <summary> /// Provides a deterministic way to create the MainViewModel property. /// </summary> public static void CreateMainViewModel() { if (_main == null) { _main = new MainViewModel(); } }
/// <summary> /// Provides a deterministic way to delete the MainViewModel property. /// </summary> public static void ClearMainViewModel() { _main.Cleanup(); _main = null; }