コード例 #1
0
        private void add_worker_btn_Click(object sender, RoutedEventArgs e)
        {
            this.Hide();
            AddWorker addWorker = new AddWorker();

            addWorker.ShowDialog();
        }
コード例 #2
0
        private void add_worker_btn_Click(object sender, RoutedEventArgs e)
        {
            this.Hide();
            AddWorker addWorker = new AddWorker(emp_dtgrid, db1);

            addWorker.ShowDialog();
            emp_dtgrid.ItemsSource = db1.employee.ToList();
            this.Show();
        }