예제 #1
0
        private void itemSecurityClass_Selected(object sender, RoutedEventArgs e)
        {
            _mainGrid.Children.Clear();
            SecurityClassManageModule security = new SecurityClassManageModule();

            _mainGrid.Children.Add(security);
        }
예제 #2
0
        private void listBoxMenu_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            _mainGrid.Children.Clear();
            ListBoxItem item = listBoxMenu.SelectedItem as ListBoxItem;

            switch (item.Name)
            {
            //保障类别
            case "itemSecurity":
                SecurityClassManageModule security = new SecurityClassManageModule();
                _mainGrid.Children.Add(security);
                break;

            //监测设备类别
            case "itemmonstationtype":
                MonitorEQUTypeModule type = new MonitorEQUTypeModule();
                _mainGrid.Children.Add(type);
                break;
            }
        }