예제 #1
0
 public WastePipes(WasteJuncs wj)
 {
     InitializeComponent();
     wastejunc            = wj;
     WastePipeGrid.Margin = new Thickness(0, 0, 0, 0);
     state = new WastePipeState(this);
 }
예제 #2
0
 public Mapctl()
 {
     InitializeComponent();
     TextState.Loaded += new RoutedEventHandler(textLoaded);
     mBackground       = new MapBackground();               //创建地图背景图层
     mRainjunc         = new RainJuncs();
     mWastejunc        = new WasteJuncs();
     mRainpipe         = new RainPipes(mRainjunc);
     mWastepipe        = new WastePipes(mWastejunc);
 }
예제 #3
0
        //是否显示污水检查井
        private void View_Show_Wastejunc_Click(object sender, RoutedEventArgs e)
        {
            int index = 4;

            if (View_Show_Wastejunc.IsChecked)
            {
                View_Show_Wastejunc.IsChecked = false;
                this.MapGrid.Children[index + 1].Visibility = Visibility.Hidden;
                listLayer.ElementAt(index).IsHidden         = true;
            }
            else
            {
                View_Show_Wastejunc.IsChecked = true;
                this.MapGrid.Children[index + 1].Visibility = Visibility.Visible;
                listLayer.ElementAt(index).IsHidden         = false;
                WasteJuncs mJunc = listLayer.ElementAt(index) as WasteJuncs;
                mJunc.Update();
            }
        }