コード例 #1
0
        private void AddDepartment_Click(object sender, RoutedEventArgs e)
        {
            var         Addwin    = new AddDepWindow();
            MyViewModel viewModel = new MyViewModel();

            Addwin.DataContext = viewModel;
            Addwin.Show();
        }
コード例 #2
0
        private void AddEmployee_Click(object sender, RoutedEventArgs e)
        {
            var Addwin = new AddDepWindow();

            Addwin.ShowDialog();
        }