public void Init() { generator = new MockDesignerGenerator(); view = new ReportDesignerView(null, new MockOpenedFile("Test.srd")); generator.Attach(view); /* * view.DesignerCodeFileContent = GetFormCode(); * loader = new DerivedPythonDesignerLoader(generator); * * // Begin load. * mockDesignerLoaderHost = new MockDesignerLoaderHost(); * mockTypeResolutionService = mockDesignerLoaderHost.TypeResolutionService; * * mockExtenderProviderService = new MockExtenderProviderService(); * mockDesignerLoaderHost.AddService(typeof(IExtenderProviderService), mockExtenderProviderService); * * mockEventBindingService = new MockEventBindingService(); * mockDesignerLoaderHost.AddService(typeof(IEventBindingService), mockEventBindingService); * * System.Console.WriteLine("Before BeginLoad"); * loader.BeginLoad(mockDesignerLoaderHost); * System.Console.WriteLine("After BeginLoad"); * rootComponent = mockDesignerLoaderHost.RootComponent; * * designedForm = new Form(); * designedForm.Name = "NewMainForm"; * mockDesignerLoaderHost.RootComponent = designedForm; * loader.CallPerformFlush(); */ }
public void Init() { generator = new MockDesignerGenerator(); view = new ReportDesignerView(null, new MockOpenedFile("Test.srd")); generator.Attach(view); /* view.DesignerCodeFileContent = GetFormCode(); loader = new DerivedPythonDesignerLoader(generator); // Begin load. mockDesignerLoaderHost = new MockDesignerLoaderHost(); mockTypeResolutionService = mockDesignerLoaderHost.TypeResolutionService; mockExtenderProviderService = new MockExtenderProviderService(); mockDesignerLoaderHost.AddService(typeof(IExtenderProviderService), mockExtenderProviderService); mockEventBindingService = new MockEventBindingService(); mockDesignerLoaderHost.AddService(typeof(IEventBindingService), mockEventBindingService); System.Console.WriteLine("Before BeginLoad"); loader.BeginLoad(mockDesignerLoaderHost); System.Console.WriteLine("After BeginLoad"); rootComponent = mockDesignerLoaderHost.RootComponent; designedForm = new Form(); designedForm.Name = "NewMainForm"; mockDesignerLoaderHost.RootComponent = designedForm; loader.CallPerformFlush(); */ }
public override void Run() { ReportDesignerView formDesigner = AbstractFormsDesignerCommand.ReportDesigner; if (formDesigner != null) { formDesigner.TogglePageMargin(); } }
public override void Run() { ReportDesignerView formDesigner = ReportDesigner; if (formDesigner != null && CanExecuteCommand(formDesigner.Host)) { IMenuCommandService menuCommandService = (IMenuCommandService)formDesigner.Host.GetService(typeof(IMenuCommandService)); menuCommandService.GlobalInvoke(CommandID); } }
public override void Run() { IWorkbenchWindow window = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow; if (window == null) { return; } ReportDesignerView formDesigner = AbstractFormsDesignerCommand.ReportDesigner; if (formDesigner != null) { formDesigner.ShowSourceCode(); } }
public override void Run(){ var generator = new ReportDesignerGenerator(); DesignerView = new ReportDesignerView(openedFile, generator); }
public void Attach(ReportDesignerView viewContent) { this.view = viewContent; }
public override void Run() { var generator = new ReportDesignerGenerator(); DesignerView = new ReportDesignerView(openedFile, generator); }