コード例 #1
0
        private void DeleteEmployeeBtn_Click(object sender, RoutedEventArgs e)
        {
            DeleteEmployeeWindow deleteEmployeeWindow = new DeleteEmployeeWindow();

            deleteEmployeeWindow.Show();
            this.Hide();
        }
コード例 #2
0
 public DeleteEmployeeWindow()
 {
     InitializeComponent();
     DeleteEmployeeWindowInstance = this;
     EmployeeListView.ItemsSource = EmployeeRepository.GetEmployees();
     this.Closing += WindowClosed;
     EmployeeListView.SelectionChanged += ListViewSelectionChanged;
 }