/// <summary> /// Executes this FieldsListFromSelectedClassCommand. /// </summary> /// <seealso cref="M:XamlHelpmeet.Commands.CommandBase.Execute()"/> public override void Execute() { try { var remoteTypeReflector = new RemoteTypeReflector(); var classEntity = remoteTypeReflector.GetClassEntityFromSelectedClass(Application.SelectedItems.Item(1).ProjectItem.ContainingProject, Caption); if (classEntity != null && classEntity.Success) { var obj = new FieldsListWindow(classEntity); obj.Topmost = true; obj.Show(); } } catch (Exception ex) { UIUtilities.ShowExceptionMessage(Caption, ex.Message, String.Empty, ex.ToString()); } }
/// <summary> /// Executes this FieldsListFromSelectedClassCommand. /// </summary> /// <seealso cref="M:XamlHelpmeet.Commands.CommandBase.Execute()"/> public override void Execute() { logger.Trace("Entered Execute()"); try { var remoteTypeReflector = new RemoteTypeReflector(); var classEntity = remoteTypeReflector.GetClassEntityFromSelectedClass( Application.SelectedItems.Item(1).ProjectItem.ContainingProject, Caption); if (classEntity != null && classEntity.Success) { var obj = new FieldsListWindow(classEntity); obj.Topmost = true; obj.Show(); } } catch (Exception ex) { UIUtilities.ShowExceptionMessage(this.Caption, ex.Message); logger.Error("An exception was raised in Execute().", ex); } }