コード例 #1
0
        public AdminView()
        {
            InitializeComponent();
            UserControl usc = new UCEmployeeManagementView();

            GridMain.Children.Add(usc);
        }
コード例 #2
0
        private void ListViewMenu_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            UserControl usc = null;

            GridMain.Children.Clear();

            switch (((ListViewItem)((ListView)sender).SelectedItem).Name)
            {
            case "ItemHome":
                usc = new UCEmployeeManagementView();
                GridMain.Children.Add(usc);
                break;

            default:
                break;
            }
        }