protected virtual void OnLoaded(LoadedEventArgs e) { if (this.Loaded != null) { this.Loaded(this, e); } }
protected virtual void OnLoaded(LoadedEventArgs e) { _loadErrors = e.Errors; _isLoaded = e.HasSucceeded; if (Loaded != null) { Loaded(this, e); } }
protected virtual void OnLoaded(LoadedEventArgs e) { Loaded?.Invoke(this, e); }
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(); } }
private void OnDesignerHost_Loaded(object sender, LoadedEventArgs e) { this.OnLoaded(e); }
private void OnSurfaceLoaded(object sender, LoadedEventArgs e) { ReloadWorkflowOutline(); }
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(); } }
void DesignerLoaded(object sender, LoadedEventArgs e) { // This method is called when the designer has loaded. this.reloadPending = false; this.unloading = false; if (e.HasSucceeded) { // Display the designer on the view content 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 = System.Windows.Forms.Control.DefaultFont; MakeDirty(); designSurfaceManager.ActiveDesignSurface = this.designSurface; this.UserContent = designView; 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. } }
void DesignerLoaded(object sender, LoadedEventArgs e) { // This method is called when the designer has loaded. LoggingService.Debug("Forms designer: DesignerLoader loaded, HasSucceeded=" + e.HasSucceeded.ToString()); this.reloadPending = false; this.unloading = false; if (e.HasSucceeded) { // 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 = System.Windows.Forms.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; } }
protected virtual void OnLoaded(LoadedEventArgs e) { throw null; }
protected virtual void OnLoaded (LoadedEventArgs e) { _loadErrors = e.Errors; _isLoaded = e.HasSucceeded; if (Loaded != null) Loaded (this, e); }
private void OnDesignerHost_Loaded (object sender, LoadedEventArgs e) { this.OnLoaded (e); }
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) { // CreatePanel(); SetupDesignSurface(); this.IsFormsDesignerVisible = true; generator.MergeFormChanges(null); StartReportExplorer (); LoggingService.Debug("FormsDesigner loaded, setting ActiveDesignSurface to " + this.designSurface.ToString()); designSurfaceManager.ActiveDesignSurface = this.designSurface; 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; } }
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; } }