public override void OnPageLoad(object sender, EventArgs e) { base.OnPageLoad(sender, e); AuthorizeUserFuncPoint(); GridSearchArea.DataContext = new CategoryQueryModel(); Window.DocumentVerticalScrollBar = ScrollBarVisibility.Disabled; Window.DocumentHorizontalScrollBar = ScrollBarVisibility.Disabled; m_queryLogConfigClient = new QueryLogConfigClient(this); Window.WindowStatusChanged += WindowStatusChanged; m_queryLogConfigClient.GetGlobalRegionCompleted += QueryLogConfigClientGetGlobalRegionCompleted; m_queryLogConfigClient.GetLocalRegionCompleted += QueryLogConfigClientGetLocalRegionCompleted; m_queryLogConfigClient.GetCategoryConfigsCompleted += QueryLogConfigClientGetCategoryConfigsCompleted; ButtonSearch.Click += new RoutedEventHandler(ButtonSearch_Click); TextBoxCategoryName.KeyUp += new KeyEventHandler(TextBox_KeyUp); MaintainArea.Children.Add(new MaintainLogCategory(this)); ((UserControl)MaintainArea.Children[0]).IsEnabled = false; m_queryLogConfigClient.GetGlobalRegionAsync(new LogGlobalQueryCriteria()); }
public MaintainLogCategory(LogCategoryConfig logCategoryConfig) { InitializeComponent(); m_logCategoryConfig = logCategoryConfig; m_maintainLogConfigClient = new MaintainLogConfigClient(m_logCategoryConfig); m_queryLogConfigClient = new QueryLogConfigClient(m_logCategoryConfig); m_maintainLogConfigClient.EditLogCategoryCompleted += MaintainLogConfigClientEditLogCategoryCompleted; m_maintainLogConfigClient.CreateLogCategoryCompleted += MaintainLogConfigClientCreateLogCategoryCompleted; m_queryLogConfigClient.GetGlobalRegionCompleted += QueryLogConfigClientGetGlobalRegionCompleted; m_queryLogConfigClient.GetLocalRegionCompleted += QueryLogConfigClientGetLocalRegionCompleted; ResetDataContext(); m_queryLogConfigClient.GetGlobalRegionAsync(new LogGlobalQueryCriteria()); m_isEdit = true; }
public void UpdateGlobalRegion() { m_isUpdateLocalOrGlobal = true; m_criteria = UtilityHelper.DeepClone(GridSearchArea.DataContext as CategoryQueryModel); m_queryLogConfigClient.GetGlobalRegionAsync(new LogGlobalQueryCriteria()); }
void MaintainLocalInfo_Loaded(object sender, RoutedEventArgs e) { m_queryLogConfigClient.GetGlobalRegionAsync(new LogGlobalQueryCriteria()); }
/// <summary> /// 更新Global Regions /// </summary> public void UpdateGlobalRegion() { m_queryLogConfigClient.GetGlobalRegionAsync(new LogGlobalQueryCriteria()); }
void DataGridGlobalInfos_LoadingDataSource(object sender, Silverlight.Controls.Data.LoadingDataEventArgs e) { m_queryLogConfigClient.GetGlobalRegionAsync(new LogGlobalQueryCriteria()); }