private void ShowNotifiedAlertDetails(SupervisorNotificationDTO supervisorNotificationDTO) { var detailsCtrl = new NotifiedAlertViolatorDetailsUserControl(supervisorNotificationDTO); detailsCtrl.CloseCanvas += OnCloseCanvas; detailsCtrl.GoToNextStep += OnGoToNextStep; CanvasEventArgs canvasEventArgs = new CanvasEventArgs { ChildControl = detailsCtrl, Width = 400 }; OnAddChildContent(this, canvasEventArgs); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.NotifiedAlertViolatorDetailsUIControl = ((STC.Projects.WPFControlLibrary.AlertNotificationMapControl.UserControls.NotifiedAlertViolatorDetailsUserControl)(target)); return; case 2: this.gridNotifiedViolatorDetails = ((System.Windows.Controls.Grid)(target)); return; case 3: this.btnClosePopups = ((System.Windows.Controls.Button)(target)); #line 85 "..\..\..\UserControls\NotifiedAlertViolatorDetailsUserControl.xaml" this.btnClosePopups.Click += new System.Windows.RoutedEventHandler(this.btnClosePopup_Click); #line default #line hidden return; case 4: this.backgroundGrid = ((System.Windows.Controls.Grid)(target)); return; case 5: this.expanderNotifiedViolatorDetails = ((System.Windows.Controls.Expander)(target)); return; case 6: this.txtBoxComment = ((System.Windows.Controls.TextBlock)(target)); return; case 7: #line 297 "..\..\..\UserControls\NotifiedAlertViolatorDetailsUserControl.xaml" ((System.Windows.Controls.Image)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Attachement_MouseDown); #line default #line hidden return; case 8: this.expanderNotifiedViolatorHiostory = ((System.Windows.Controls.Expander)(target)); return; case 9: this.expanderNotifiedViolatorActionArea = ((System.Windows.Controls.Expander)(target)); return; case 10: this.borderApproveRejectArea = ((System.Windows.Controls.Border)(target)); return; case 11: this.txtBoxComment2 = ((System.Windows.Controls.TextBox)(target)); return; case 12: #line 463 "..\..\..\UserControls\NotifiedAlertViolatorDetailsUserControl.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Approve_OnClick); #line default #line hidden return; case 13: this.btnRejectReportedAlert = ((System.Windows.Controls.Button)(target)); #line 468 "..\..\..\UserControls\NotifiedAlertViolatorDetailsUserControl.xaml" this.btnRejectReportedAlert.Click += new System.Windows.RoutedEventHandler(this.btnRejectReportedAlert_Click); #line default #line hidden return; case 14: this.imgMediaGalleryUc = ((STC.Projects.WPFControlLibrary.AlertNotificationMapControl.UserControls.ImageMediaGalleryUserControl)(target)); return; } this._contentLoaded = true; }