private void PrinterFriendlyDimensionUsage_Load(object sender, EventArgs e) { try { this.ReportViewerControl.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local; this.ReportViewerControl.LocalReport.ReportEmbeddedResource = "BIDSHelper." + Report; //prevents a crash or error in VS2015 PermissionSet permissions = new PermissionSet(PermissionState.Unrestricted); this.ReportViewerControl.LocalReport.SetBasePermissionsForSandboxAppDomain(permissions); AssemblyName asm_name = System.Reflection.Assembly.GetExecutingAssembly().GetName(); this.ReportViewerControl.LocalReport.AddFullTrustModuleInSandboxAppDomain(new StrongName(new StrongNamePublicKeyBlob(asm_name.GetPublicKeyToken()), asm_name.Name, asm_name.Version)); EnsureReportViewerAppDomainSetup(); //TODO - set the form caption, either via a property or by parsing the report name if the caption hasn't been set this.Text = Caption; if (Parameters.Count > 0) { this.ReportViewerControl.LocalReport.SetParameters(Parameters); } this.ReportViewerControl.RefreshReport(); } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); MessageBox.Show(BIDSHelperPackage.FormatLoaderException(ex)); } }
public SmartDiffPlugin(BIDSHelperPackage package) : base(package) { // TODO - should we get this property without using the ApplicationObject _VisualStudioRegistryPath = this.ApplicationObject.RegistryRoot; CreateContextMenu(CommandList.SmartDiffId, BI_FILE_EXTENSIONS); }
/// <summary> /// Initializes a new instance of the <see cref="VersionCheckPlugin"/> class. /// </summary> /// <param name="con">The connect object.</param> /// <param name="appObject">The application object.</param> /// <param name="addinInstance">The add-in instance.</param> public VersionCheckPlugin(BIDSHelperPackage package) : base(package) { Instance = this; if (this.Enabled && LastVersionCheck.AddDays(CHECK_EVERY_DAYS) < DateTime.Today) { //create this form on the main thread versionCheckForm = new BIDSHelper.Core.VersionCheckNotificationForm(this); versionCheckForm.Show(); //will hide itself worker.DoWork += new DoWorkEventHandler(worker_DoWork); worker.RunWorkerAsync(); } }
public TabularAnnotationWorkaroundPlugin(BIDSHelperPackage package) : base(package) { CreateContextMenu(CommandList.TabularAnnotationsWorkaroundId); }
public TabularPreBuildPlugin(BIDSHelperPackage package) : base(package) { //_buildEvents = appObject.Events.BuildEvents; //_buildEvents.OnBuildBegin += new _dispBuildEvents_OnBuildBeginEventHandler(BuildEvents_OnBuildBegin); }
public TriStatePerspectivesPlugin(BIDSHelperPackage package) : base(package) { }
public AggregationManagerPlugin(BIDSHelperPackage package) : base(package) { CreateContextMenu(CommandList.AggregationManagerId, typeof(Cube)); }
public TabularHideMemberIfPlugin(BIDSHelperPackage package) : base(package) { }
public BIDSHelperBuildEventPluginBase(BIDSHelperPackage package) : base(package) { }
public TabularDeployDatabasePlugin(BIDSHelperPackage package) : base(package) { CreateContextMenu(CommandList.TabularDeployDatabaseId, ".bim"); }
public static IServiceProvider GetTabularServiceProviderFromActiveWindow(BIDSHelperPackage package) { return(GetTabularServiceProviderFromProjectItem(package.DTE2.ActiveWindow.ProjectItem, false)); }
//TODO - replace these methods? public static Microsoft.AnalysisServices.BackEnd.DataModelingSandbox GetTabularSandboxFromActiveWindow(BIDSHelperPackage package) { return(GetTabularSandboxFromProjectItem(package.DTE2.ActiveWindow.ProjectItem, false)); }
public SyncDescriptionsPlugin(BIDSHelperPackage package) : base(package) { CreateContextMenu(CommandList.SyncDescriptionsId, typeof(Dimension)); }
public DataTypeDiscrepancyCheckPlugin(BIDSHelperPackage package) : base(package) { CreateContextMenu(CommandList.DataTypeDiscrepancyCheckId); }
public TabularActionsEditorPlugin(BIDSHelperPackage package) : base(package) { CreateContextMenu(CommandList.TabularActionsEditorId); }
public BIDSHelperWindowActivatedPluginBase(BIDSHelperPackage package) : base(package) { }
public DimensionOptimizationReportPlugin(BIDSHelperPackage package) : base(package) { CreateContextMenu(CommandList.DimensionOptimizationReportId); }
public MeasureGroupHealthCheckPlugin(BIDSHelperPackage package) : base(package) { CreateContextMenu(CommandList.MeasureGroupHealthCheckId); }
public DeployAggDesignsPlugin(BIDSHelperPackage package) : base(package) { CreateContextMenu(CommandList.DeployAggDesignsId, ".cube"); }
public DimensionHealthCheckPlugin(BIDSHelperPackage package) : base(package) { CreateContextMenu(CommandList.DimensionHealthCheckId, typeof(Dimension)); }