private void Query_Click(object sender, RoutedEventArgs e) { HistoryWindow hw = new HistoryWindow(dal) { WindowStartupLocation = WindowStartupLocation.CenterScreen }; hw.Show(); hw.Activate(); }
private void ShowDetail(string custBar) { HistoryWindow hw = new HistoryWindow(dal) { WindowStartupLocation = WindowStartupLocation.CenterScreen }; hw.custCode.Text = custBar; hw.Show(); hw.Query(); hw.Activate(); }
private void OpenHistoryWindow_Executed(object sender, ExecutedRoutedEventArgs e) { if (HistoryWindow == null) { HistoryWindow = new HistoryWindow(); HistoryWindow.Closed += (s, a) => HistoryWindow = null; HistoryWindow.Show(); } else { HistoryWindow.Activate(); } }