void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Window = ((LoggingDataManager.MoveWindow)(target)); return; case 2: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 3: this.TB_X = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.SL_X = ((System.Windows.Controls.Slider)(target)); return; case 5: this.TB_Y = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.SL_Y = ((System.Windows.Controls.Slider)(target)); return; case 7: this.BTN_OK = ((System.Windows.Controls.Button)(target)); return; case 8: this.BTN_Cancel = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }
void BTN_Move_Click(object sender, RoutedEventArgs e) { LoggingDataManager.MoveWindow w = new LoggingDataManager.MoveWindow(CurveXMinValue, CurveXMaxValue, curve.YMinValue, curve.YMaxValue, this); w.ShowDialog(); }