Ejemplo n.º 1
0
        private void AddDepartment_Click(object sender, RoutedEventArgs e)
        {
            var         Addwin    = new AddDepWindow();
            MyViewModel viewModel = new MyViewModel();

            Addwin.DataContext = viewModel;
            Addwin.Show();
        }
Ejemplo n.º 2
0
        private void AddEmployee_Click(object sender, RoutedEventArgs e)
        {
            var Addwin = new AddDepWindow();

            Addwin.ShowDialog();
        }