public IANLineItemModal() { isInitialized = false; InitializeComponent(); isInitialized = true; this.Loaded += new RoutedEventHandler(IANLineItemModal_Loaded); _vm = this.DataContext as IANLineItemViewModel; }
/// <summary> /// Provides a deterministic way to create the ViewModelPropertyName property. /// </summary> public static void CreateViewModelPropertyName() { if (_IANLineItemViewModel == null) { _IANLineItemViewModel = new IANLineItemViewModel(); ; } }
/// <summary> /// Provides a deterministic way to create the IANLineItemViewModel property. /// </summary> public static void CreateIANLineItemViewModel() { if (_ianLineItemViewModel == null) { _ianLineItemViewModel = new IANLineItemViewModel(); } }
/// <summary> /// Provides a deterministic way to delete the ViewModelPropertyName property. /// </summary> public static void ClearViewModelPropertyName() { _IANLineItemViewModel.Cleanup(); _IANLineItemViewModel = null; }
/// <summary> /// Provides a deterministic way to delete the IANLineItemViewModel property. /// </summary> public static void ClearIANLineItemViewModel() { _ianLineItemViewModel.Cleanup(); _ianLineItemViewModel = null; }