private void OnShowFastSegmentation(NotificationMessageAction<FastSegmentParam> info) { FastSegmentParam dataInfo = info.Target as FastSegmentParam; Window_FastSegmentation winFastSegmentation = new Window_FastSegmentation(dataInfo); winFastSegmentation.Owner = Application.Current.MainWindow; winFastSegmentation.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner; if (winFastSegmentation.ShowDialog() == true) { FastSegmentParam data = winFastSegmentation.GetFastSegmentationInfo(); info.Execute(data); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Window = ((Nova.SmartLCT.UI.Window_FastSegmentation)(target)); #line 17 "..\..\..\Window_FastSegmentation.xaml" this.Window.Closed += new System.EventHandler(this.Window_Closed); #line default #line hidden return; case 2: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 3: this.NumericUpDown_EnvironmentBrightMax = ((Nova.Wpf.Control.NumericUpDown)(target)); return; case 4: this.NumericUpDown_ScreenBrightMax = ((Nova.Wpf.Control.NumericUpDown)(target)); return; case 5: this.TextBlock_Segmentation = ((System.Windows.Controls.TextBlock)(target)); return; case 6: this.ScrollBar_SegmentationNum = ((System.Windows.Controls.Primitives.ScrollBar)(target)); return; case 7: this.NumericUpDown_EnvironMentBrightMin = ((Nova.Wpf.Control.NumericUpDown)(target)); return; case 8: this.NumericUpDown_ScreenBrightMin = ((Nova.Wpf.Control.NumericUpDown)(target)); return; case 9: this.Button_OK = ((System.Windows.Controls.Button)(target)); return; case 10: this.Button_Cancel = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }
private void OnShowFastSegmentation(NotificationMessageAction<FastSegmentParam> info) { FastSegmentParam dataInfo = info.Target as FastSegmentParam; Window_FastSegmentation winFastSegmentation = new Window_FastSegmentation(dataInfo); bool? res= ShowInCenterParentWithRes(winFastSegmentation); if (res==true) { FastSegmentParam data = winFastSegmentation.GetFastSegmentationInfo(); info.Execute(data); } }