public void ToolLongScreenBtnClick(object sender, RoutedEventArgs e) { LongScreenWindow topImage = new LongScreenWindow(HightLightRect.Left, HightLightRect.Top, HightLightRect.Width, HightLightRect.Height); topImage.Show(); this.Close(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.window = ((LoveScreen.Windows.LongScreenWindow)(target)); return; case 2: this.C_FrameRect = ((System.Windows.Shapes.Rectangle)(target)); return; case 3: #line 32 "..\..\..\Windows\LongScreenWindow.xaml" ((LoveScreen.Controls.TextBlockFrame)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBlockFrame_MouseDown); #line default #line hidden return; case 4: #line 35 "..\..\..\Windows\LongScreenWindow.xaml" ((LoveScreen.Controls.ImgButton)(target)).Click += new System.Windows.RoutedEventHandler(this.OkButton_Click); #line default #line hidden return; case 5: this.C_SizeFrame = ((System.Windows.Shapes.Rectangle)(target)); #line 38 "..\..\..\Windows\LongScreenWindow.xaml" this.C_SizeFrame.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Path_MouseDown); #line default #line hidden #line 38 "..\..\..\Windows\LongScreenWindow.xaml" this.C_SizeFrame.MouseMove += new System.Windows.Input.MouseEventHandler(this.Path_MouseMove); #line default #line hidden #line 38 "..\..\..\Windows\LongScreenWindow.xaml" this.C_SizeFrame.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Path_MouseUp); #line default #line hidden return; } this._contentLoaded = true; }