示例#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();
        }