private void EnsureNewCommand()
{
if (_NewCommand == null)
{
_NewCommand = ViewModelFactory.CreateViewModel<NewDataObjectCommand.Factory>().Invoke(
DataContext,
this,
DataType);
_NewCommand.ObjectCreated += OnObjectCreated;
_NewCommand.LocalModelCreated += OnLocalModelCreated;
}
}