コード例 #1
0
        private void Query_Click(object sender, RoutedEventArgs e)
        {
            HistoryWindow hw = new HistoryWindow(dal)
            {
                WindowStartupLocation = WindowStartupLocation.CenterScreen
            };

            hw.Show();
            hw.Activate();
        }
コード例 #2
0
        private void ShowDetail(string custBar)
        {
            HistoryWindow hw = new HistoryWindow(dal)
            {
                WindowStartupLocation = WindowStartupLocation.CenterScreen
            };

            hw.custCode.Text = custBar;
            hw.Show();
            hw.Query();
            hw.Activate();
        }
コード例 #3
0
 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();
     }
 }