Пример #1
0
        static void OnSearchEventTimeDelayChanged(
            DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            SearchTextBox stb = o as SearchTextBox;

            if (stb != null)
            {
                stb.searchEventDelayTimer.Interval = ((Duration)e.NewValue).TimeSpan;
                stb.searchEventDelayTimer.Stop();
            }
        }
Пример #2
0
        void radioButtonOutlook_Checked(object sender, RoutedEventArgs e)
        {
            TemplateComboBox.Items.Clear();
            TemplateComboBox.Items.Add(Languages.Translate("Select a template..."));
            foreach (DocumentTemplate documentTemplate in this.DocumentTemplates.GetDocumentTemplates(ApplicationTypes.Outlook))
            {
                TemplateComboBox.Items.Add(documentTemplate);
            }
            TemplateComboBox.SelectedIndex = 0;
            if (SelectedDocumentTemplate != null)
            {
                //TemplateComboBox.SelectedValue = SelectedExcelDocumentTemplate;
            }

            SearchTextBox.Focus();
            FiltersButton.IsEnabled = false;
            SearchButton.IsEnabled  = false;
            UpdateFilterButtonText();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.rootDockPanel = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 2:
                this.ListViewActionPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 3:
                this.NewButton = ((System.Windows.Controls.Button)(target));

            #line 43 "..\..\ContentExplorer.xaml"
                this.NewButton.Click += new System.Windows.RoutedEventHandler(this.NewButton_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.NewButtonContextMenu = ((System.Windows.Controls.ContextMenu)(target));
                return;

            case 5:
                this.FolderNewMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 51 "..\..\ContentExplorer.xaml"
                this.FolderNewMenuItem.Click += new System.Windows.RoutedEventHandler(this.FolderNewMenuItem_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.NewFileUploadMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 56 "..\..\ContentExplorer.xaml"
                this.NewFileUploadMenuItem.Click += new System.Windows.RoutedEventHandler(this.NewFileUploadMenuItem_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.NewWordDocumentMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 61 "..\..\ContentExplorer.xaml"
                this.NewWordDocumentMenuItem.Click += new System.Windows.RoutedEventHandler(this.NewWordDocumentMenuItem_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.NewExcelWorkbookMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 66 "..\..\ContentExplorer.xaml"
                this.NewExcelWorkbookMenuItem.Click += new System.Windows.RoutedEventHandler(this.NewExcelWorkbookMenuItem_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.NewPowerPointPresentationMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 71 "..\..\ContentExplorer.xaml"
                this.NewPowerPointPresentationMenuItem.Click += new System.Windows.RoutedEventHandler(this.NewPowerPointPresentationMenuItem_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.NewOneNoteNotebookMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 76 "..\..\ContentExplorer.xaml"
                this.NewOneNoteNotebookMenuItem.Click += new System.Windows.RoutedEventHandler(this.NewOneNoteNotebookMenuItem_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.SynchronizeButton = ((System.Windows.Controls.Button)(target));

            #line 84 "..\..\ContentExplorer.xaml"
                this.SynchronizeButton.Click += new System.Windows.RoutedEventHandler(this.SynchronizeButton_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.SelectViewButton = ((System.Windows.Controls.Button)(target));

            #line 91 "..\..\ContentExplorer.xaml"
                this.SelectViewButton.Click += new System.Windows.RoutedEventHandler(this.SelectViewButton_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.SelectViewButtonContextMenu = ((System.Windows.Controls.ContextMenu)(target));
                return;

            case 14:
                this.searchTextBox1 = ((Sobiens.Connectors.WPF.Controls.SearchTextBox)(target));
                return;

            case 15:
                this.PreviousButton = ((System.Windows.Controls.Button)(target));

            #line 105 "..\..\ContentExplorer.xaml"
                this.PreviousButton.Click += new System.Windows.RoutedEventHandler(this.PreviousButton_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.PagingLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.NextButton = ((System.Windows.Controls.Button)(target));

            #line 111 "..\..\ContentExplorer.xaml"
                this.NextButton.Click += new System.Windows.RoutedEventHandler(this.NextButton_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.LibraryContentDataListView = ((System.Windows.Controls.ListView)(target));

            #line 118 "..\..\ContentExplorer.xaml"
                this.LibraryContentDataListView.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.LibraryContentDataGridView_MouseDoubleClick);

            #line default
            #line hidden

            #line 123 "..\..\ContentExplorer.xaml"
                this.LibraryContentDataListView.ContextMenuOpening += new System.Windows.Controls.ContextMenuEventHandler(this.LibraryContentDataGridView_ContextMenuOpening);

            #line default
            #line hidden
                return;

            case 19:
                this.GridViewControl = ((System.Windows.Controls.GridView)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.radioButtonGeneral = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 2:
                this.radioButtonWord = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 3:
                this.radioButtonExcel = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 4:
                this.radioButtonOutlook = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 5:
                this.TemplateComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 15 "..\..\SearchExplorer.xaml"
                this.TemplateComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TemplateComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.SearchLocationComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 16 "..\..\SearchExplorer.xaml"
                this.SearchLocationComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.SearchLocationComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.FiltersButton = ((System.Windows.Controls.Button)(target));

            #line 17 "..\..\SearchExplorer.xaml"
                this.FiltersButton.Click += new System.Windows.RoutedEventHandler(this.FiltersButton_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.SearchTextBox = ((Sobiens.Connectors.WPF.Controls.SearchTextBox)(target));
                return;

            case 9:
                this.SearchButton = ((System.Windows.Controls.Button)(target));

            #line 20 "..\..\SearchExplorer.xaml"
                this.SearchButton.Click += new System.Windows.RoutedEventHandler(this.SearchButton_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.SearchResultDataGridView = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }