/// <summary> /// Shut Down /// </summary> /// <param name="application"></param> /// <returns></returns> public Result OnShutdown(UIControlledApplication application) { if (RvtWindow != null && RvtWindow.IsVisible) { RvtWindow.Close(); } return(Result.Succeeded); }