Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
 public void UpdateGlobalRegion()
 {
     m_isUpdateLocalOrGlobal = true;
     m_criteria = UtilityHelper.DeepClone(GridSearchArea.DataContext as CategoryQueryModel);
     m_queryLogConfigClient.GetGlobalRegionAsync(new LogGlobalQueryCriteria());
 }
Exemplo n.º 4
0
 void MaintainLocalInfo_Loaded(object sender, RoutedEventArgs e)
 {
     m_queryLogConfigClient.GetGlobalRegionAsync(new LogGlobalQueryCriteria());
 }
Exemplo n.º 5
0
 /// <summary>
 /// 更新Global Regions
 /// </summary>
 public void UpdateGlobalRegion()
 {
     m_queryLogConfigClient.GetGlobalRegionAsync(new LogGlobalQueryCriteria());
 }
Exemplo n.º 6
0
 void DataGridGlobalInfos_LoadingDataSource(object sender, Silverlight.Controls.Data.LoadingDataEventArgs e)
 {
     m_queryLogConfigClient.GetGlobalRegionAsync(new LogGlobalQueryCriteria());
 }