private void Button_Click_2(object sender, RoutedEventArgs e) { WindowNew windowNew = new WindowNew(); windowNew.Show(); // windowNew.DataContext = this.DataContext; }
//------------------------------------------------------------------------------ // Explicit Activation // This entry point is used to activate the application explicitly //------------------------------------------------------------------------------ //точка входа, запуск приложения в NX12 ctrl+u public static int Main(string[] args) { int retValue = 0; try { theProgram = new Nx_Wpf(); //главное окно // WPFNX.MainWindow dialog = new WPFNX.MainWindow(); WPFNX.WindowNew dialog = new WPFNX.WindowNew(); dialog.ShowDialog(); theProgram.Dispose(); } catch (NXOpen.NXException ex) { UI.GetUI().NXMessageBox.Show("Message", NXMessageBox.DialogType.Error, ex.Message); } return(retValue); }