Beispiel #1
0
        private void listBoxMenu_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            this.borderContent.Child = null;
            switch (listBoxMenu.SelectedIndex)
            {
            //频谱规划表
            case 0:
                this.borderContent.Visibility = System.Windows.Visibility.Visible;
                FreqPlanMangeControl freqplan = new FreqPlanMangeControl();
                freqplan.PlaceGuid       = this.CurrentPalceGuid;
                this.borderContent.Child = freqplan;
                break;

            //频率占用
            case 1:
                this.borderContent.Visibility = System.Windows.Visibility.Visible;
                FreqAnalyseControl freqanalyse = new FreqAnalyseControl();
                freqanalyse.PlaceGuid    = this.CurrentPalceGuid;
                this.borderContent.Child = freqanalyse;
                break;

            //参会台站
            case 2:
                this.borderContent.Visibility = System.Windows.Visibility.Visible;
                StationQueryControl stationquerycontrol = new StationQueryControl();
                stationquerycontrol.PlaceGuid = this.CurrentPalceGuid;
                this.borderContent.Child      = stationquerycontrol;
                break;
            }
        }
Beispiel #2
0
        private static void PlaceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            StationQueryControl querycontrol = d as StationQueryControl;

            querycontrol.condition.PlaceGuid = e.NewValue == null ? null : e.NewValue.ToString();
            querycontrol.GetQualifiedEquipment();
        }