Example #1
0
        void DesignerLoaded(object sender, LoadedEventArgs e)
        {
            // This method is called when the designer has loaded.
            LoggingService.Debug("Report designer: DesignerLoader loaded, HasSucceeded=" + e.HasSucceeded.ToString());
//			this.reloadPending = false;
            this.unloading = false;

            if (e.HasSucceeded)
            {
                Control c = null;
                c        = this.designSurface.View as Control;
                c.Parent = this.panel;
                c.Dock   = DockStyle.Fill;
                this.IsFormsDesignerVisible = true;
                // to set ReportFileContent initially, we need to manually call MergeFormChanges.
                // updates to ReportFileContent will be done using the normal Save support in OpenedFile
                // (that just doesn't work initially because the file isn't dirty)
                generator.MergeFormChanges(null);
                StartReportExplorer();
                // Display the designer on the view content
//				bool savedIsDirty = this.DesignerCodeFile.IsDirty;
//				Control designView = (Control)this.designSurface.View;

//				designView.BackColor = Color.White;
//				designView.RightToLeft = RightToLeft.No;
                // Make sure auto-scaling is based on the correct font.
                // This is required on Vista, I don't know why it works correctly in XP
//				designView.Font = Control.DefaultFont;

//				this.UserContent = designView;
                LoggingService.Debug("FormsDesigner loaded, setting ActiveDesignSurface to " + this.designSurface.ToString());
                designSurfaceManager.ActiveDesignSurface = this.designSurface;
//				this.DesignerCodeFile.IsDirty = savedIsDirty;
                this.UpdatePropertyPad();
            }
            else
            {
                // This method can not only be called during initialization,
                // but also when the designer reloads itself because of
                // a language change.
                // When a load error occurs there, we are not somewhere
                // below the Load method which handles load errors.
                // That is why we create an error text box here anyway.


//				TextBox errorTextBox = new TextBox() { Multiline=true, ScrollBars=ScrollBars.Both, ReadOnly=true, BackColor=SystemColors.Window, Dock=DockStyle.Fill };
//				errorTextBox.Text = String.Concat(this.LoadErrorHeaderText, FormatLoadErrors(designSurface));
//				this.UserContent = errorTextBox;
            }
        }
Example #2
0
        void DesignerLoaded(object sender, LoadedEventArgs e)
        {
            LoggingService.Debug("ReportDesigner: Event > DesignerLoaded...");
            this.unloading = false;

            if (e.HasSucceeded)
            {
                SetupDesignSurface();
                isFormsDesignerVisible = true;
                generator.MergeFormChanges(null);
//				StartReportExplorer ();

                LoggingService.Debug("FormsDesigner loaded, setting ActiveDesignSurface to " + this.designSurface.ToString());
                designSurfaceManager.ActiveDesignSurface = this.designSurface;
                UpdatePropertyPad();
            }
        }
Example #3
0
        void DesignerLoaded(object sender, LoadedEventArgs e)
        {
            // This method is called when the designer has loaded.
            LoggingService.Debug("Report designer: DesignerLoader loaded, HasSucceeded=" + e.HasSucceeded.ToString());
            this.unloading = false;

            if (e.HasSucceeded)
            {
                SetupDesignSurface();
                this.IsFormsDesignerVisible = true;
                generator.MergeFormChanges(null);
                StartReportExplorer();

                LoggingService.Debug("FormsDesigner loaded, setting ActiveDesignSurface to " + this.designSurface.ToString());
                designSurfaceManager.ActiveDesignSurface = this.designSurface;
                this.UpdatePropertyPad();
            }
        }
Example #4
0
 protected override void PerformFlush(IDesignerSerializationManager designerSerializationManager)
 {
     System.Diagnostics.Trace.WriteLine("ReportDesignerLoader:PerformFlush");
     generator.MergeFormChanges((System.CodeDom.CodeCompileUnit)null);
 }
 protected override void PerformFlush(IDesignerSerializationManager designerSerializationManager)
 {
     LoggingService.Info("ReportDesignerLoader:PerformFlush");
     generator.MergeFormChanges((System.CodeDom.CodeCompileUnit)null);
 }