예제 #1
0
        private void ComboBoxGlobalSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (ComboBoxGlobal.ItemsSource != null && ComboBoxGlobal.SelectedValue == null)
            {
                var list = new ObservableCollection <QueryLogConfigService.LogLocalRegionBody>
                {
                    new QueryLogConfigService.LogLocalRegionBody
                    {
                        LocalName = CommonResource.ComboBox_ExtraAllText
                    }
                };

                ComboBoxLocal.ItemsSource = list;
            }
            else
            {
                ComboBoxLocal.IsShowLoading = true;
                m_queryLogConfigClient.GetLocalRegionAsync(new LogLocalQueryCriteria
                {
                    GlobalID =
                        ((QueryLogConfigService.LogGlobalRegionBody)
                         ComboBoxGlobal.SelectedItem).GlobalID,
                    LocalRegionStatus =
                        QueryLogConfigService.Status.Active
                });
            }
        }
예제 #2
0
        private void ComboBoxGlobalSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (ComboBoxGlobal.SelectedValue != null)
            {
                m_selectedGlobalId = ComboBoxGlobal.SelectedValue.ToString();
                m_queryLogConfigClient.GetLocalRegionAsync(new LogLocalQueryCriteria
                {
                    GlobalID          = ComboBoxGlobal.SelectedValue.ToString(),
                    LocalRegionStatus =
                        QueryLogConfigService.Status.Active
                });
            }
            else
            {
                var list = new ObservableCollection <LogLocalRegionBody>();

                list.Insert(0, new LogLocalRegionBody
                {
                    LocalName = CommonResource.ComboBox_ExtraSelectText,
                    Status    = QueryLogConfigService.Status.Active
                });

                ComboBoxLocal.ItemsSource = list;
            }
        }
예제 #3
0
 void DataGridLocalInfos_LoadingDataSource(object sender, Silverlight.Controls.Data.LoadingDataEventArgs e)
 {
     m_queryLogConfigClient.GetLocalRegionAsync(new LogLocalQueryCriteria
     {
         GlobalID = GlobalId
     });
 }