private void MenuItemUserExpression_OnClick(object sender, RoutedEventArgs e) { var window = new EditUserExpressionWindow { Owner = this, WindowStartupLocation = WindowStartupLocation.CenterOwner }; window.Load(QBuilder.QueryView); window.ShowDialog(); }
private void MenuItemUserExpression_OnClick(object sender, RoutedEventArgs e) { var activeWindow = MdiContainer1.ActiveChild as ChildWindow; if (activeWindow == null) { return; } var window = new EditUserExpressionWindow { Owner = this, WindowStartupLocation = WindowStartupLocation.CenterOwner }; window.Load(activeWindow.QueryView); window.ShowDialog(); }