示例#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());
        }
示例#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;
        }
示例#3
0
        public MaintainLocalInfo(LogCategoryConfig logCategoryConfig, MaintainLogCategory mainLogCategory)
        {
            InitializeComponent();
            Loaded += new RoutedEventHandler(MaintainLocalInfo_Loaded);

            m_logCategoryConfig = logCategoryConfig;
            m_mainLogCategory   = mainLogCategory;

            m_queryLogConfigClient = new QueryLogConfigClient(m_logCategoryConfig);
            m_queryLogConfigClient.GetGlobalRegionCompleted += QueryLogConfigClientGetGlobalRegionCompleted;
            m_queryLogConfigClient.GetLocalRegionCompleted  += QueryLogConfigClientGetLocalRegionCompleted;

            m_maintainLogConfigClient = new MaintainLogConfigClient(m_logCategoryConfig);
            m_maintainLogConfigClient.EditLocalRegionCompleted   += MaintainLogConfigClientEditLocalRegionCompleted;
            m_maintainLogConfigClient.CreateLocalRegionCompleted += MaintainLogConfigClientCreateLocalRegionCompleted;

            DataGridLocalInfos.LoadingDataSource += new System.EventHandler <Silverlight.Controls.Data.LoadingDataEventArgs>(DataGridLocalInfos_LoadingDataSource);

            MaintainArea.DataContext = new MaintainLogConfigService.LogLocalRegionBody();
        }
示例#4
0
        public override void OnPageLoad(object sender, EventArgs e)
        {
            base.OnPageLoad(sender, e);

            this.m_queryLogConfigClient             = new QueryLogConfigClient();
            this.Window.DocumentVerticalScrollBar   = ScrollBarVisibility.Disabled;
            this.Window.DocumentHorizontalScrollBar = ScrollBarVisibility.Disabled;

            this.m_queryLogConfigClient.GetGlobalRegionCompleted    += new EventHandler <GetGlobalRegionCompletedEventArgs>(serviceClient_GetGlobalRegionCompleted);
            this.m_queryLogConfigClient.GetLocalRegionCompleted     += new EventHandler <GetLocalRegionCompletedEventArgs>(serviceClient_GetLocalRegionCompleted);
            this.m_queryLogConfigClient.GetCategoryConfigsCompleted += new EventHandler <GetCategoryConfigsCompletedEventArgs>(serviceClient_GetCategoryConfigsCompleted);

            m_queryLogEntryClient = new QueryLogEntryClient(this);
            this.m_queryLogEntryClient.GetLogsCompleted += new EventHandler <GetLogsCompletedEventArgs>(serviceClient_GetLogsCompleted);

            this.ButtonSearch.Click += new RoutedEventHandler(ButtonSearch_Click);

            this.textBoxLogId.KeyUp  += new System.Windows.Input.KeyEventHandler(TextBox_KeyUp);
            this.textBoxRefKey.KeyUp += new System.Windows.Input.KeyEventHandler(TextBox_KeyUp);
            this.GetGlobalRegion();
        }