Beispiel #1
0
 void Breadcrumb_Error(object sender, Breadcrumb.ErrorEventArgs e)
 {
     this.Monitor.Register(this, this.Monitor.NewEventInstance("Breadcrumb error", null, e.Exception, EVENT_TYPE.Error));
 }
Beispiel #2
0
 protected override void CreateChildControls()
 {
     base.CreateChildControls();
     this.Breadcrumb = new Breadcrumb();
     this.Breadcrumb.ID = "Breadcrumb";
     this.Breadcrumb.Agent = this.Agent;
     this.Breadcrumb.Error += new EventHandler<Breadcrumb.ErrorEventArgs>(Breadcrumb_Error);
     this.Breadcrumb.Displayed += new EventHandler(Breadcrumb_Displayed);
     this.Breadcrumb.Changed += new EventHandler(Breadcrumb_Changed);
     this.Controls.Add(this.Breadcrumb);
 }