private void ExecuteSegmentCommand() { try { IsEnabledField = true; IsEnabledCC = true; _selectedCommand = CommandType.Add; _manageContent = new SimpleCommandSegmentViewModel { Command = new SimpleSegmentCommand() }; _manageContent.Initialize(_warehouse); DetailedContent = _manageContent; DetailedContent.Task = EnumSimpleCommandTask.Info; DetailedContent.ValidationEnabled = true; } catch (Exception e) { _warehouse.AddEvent(Database.Event.EnumSeverity.Error, Database.Event.EnumType.Exception, string.Format("{0}.{1}: {2}", this.GetType().Name, (new StackTrace()).GetFrame(0).GetMethod().Name, e.Message)); } }