예제 #1
0
        private void ReportExplorer_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            this.MakeDirty();
            ReportExplorerPad       explorerPad = CheckReportExplorer();
            IComponentChangeService change      = Host.GetService(typeof(IComponentChangeService)) as IComponentChangeService;

            change.OnComponentChanged(explorerPad.ReportModel.ReportSettings.SortColumnCollection, null, null, null);
        }
예제 #2
0
        private void StartReportExplorer()
        {
            ReportExplorerPad explorerPad = CheckReportExplorer();

            WorkbenchSingleton.Workbench.GetPad(typeof(ReportExplorerPad)).BringPadToFront();
            explorerPad.AddContent(this.loader.ReportModel);
            explorerPad.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(ReportExplorer_PropertyChanged);
        }
예제 #3
0
        /// <summary>
        /// Creates a new ReportExplorer object
        /// </summary>


        public ReportExplorerPad() : base()
        {
            WorkbenchSingleton.Workbench.ActiveViewContentChanged += ActiveViewContentChanged;
            WorkbenchSingleton.Workbench.ViewClosed += ActiveViewClosed;
            this.explorerTree                  = new ExplorerTree();
            this.explorerTree.MouseDown       += new MouseEventHandler(ReportExplorer_MouseDown);
            this.explorerTree.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(ReportExplorerPad_PropertyChanged);
            instance = this;
        }
예제 #4
0
		/// <summary>
		/// Creates a new ReportExplorer object
		/// </summary>
		
		
		public ReportExplorerPad():base()
		{
			SD.Workbench.ActiveViewContentChanged += ActiveViewContentChanged;
			SD.Workbench.ViewClosed += ActiveViewClosed;
			this.explorerTree = new ExplorerTree();
			this.explorerTree.MouseDown += new MouseEventHandler(ReportExplorer_MouseDown);
			this.explorerTree.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(ReportExplorerPad_PropertyChanged);
			instance = this;
		}
예제 #5
0
        private void ReportExplorer_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            LoggingService.Info("ReportExplorer_PropertyChanged");
            this.MakeDirty();
            ReportExplorerPad       explorerPad = CheckReportExplorer();
            IComponentChangeService change      = Host.GetService(typeof(IComponentChangeService)) as IComponentChangeService;

            change.OnComponentChanged(explorerPad, null, null, null);
        }
예제 #6
0
        private void StartReportExplorer()
        {
            LoggingService.Info("StartReportExplorer ()");
            ReportExplorerPad explorerPad = CheckReportExplorer();

            SD.Workbench.GetPad(typeof(ReportExplorerPad)).BringPadToFront();
            explorerPad.AddContent(this.loader.ReportModel);
            explorerPad.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(ReportExplorer_PropertyChanged);
        }
예제 #7
0
        private static ReportExplorerPad CheckReportExplorer()
        {
            ReportExplorerPad p = ReportExplorerPad.Instance;

            if (p == null)
            {
                WorkbenchSingleton.Workbench.GetPad(typeof(ReportExplorerPad)).CreatePad();
            }
            return(ReportExplorerPad.Instance);
        }