/// <summary>
        /// Opens window with search policy stuff.
        /// </summary>
        private void SearchPolicyButton(object sender, RoutedEventArgs e)
        {
            var searchWindow = new SearchPolicyDocument();

            searchWindow.ShowDialog();
            agentDocument.ItemsSource = SearchItemInDatagrid.SearchPosition(null);
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.SearchWindowClose = ((LocalDatabaseApplication.SearchPolicyDocument)(target));
                return;

            case 2:
                this.searchPolicyTextField = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:

            #line 17 "..\..\SearchPolicyDocument.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SearchPolicyNowButton);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }