Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();
            PopulateRecentFilesMenuItems();

            this.AboutPage    = new About();
            this.UserSettings = new UserSettings();
            this.SearchFolder = null;

            // TODO : understand how to reliably bind in xaml
            this.TabControl.InterTabController.InterTabClient = DoNothingInterTabClient;
            this.TabControl.IsEmptyChanged += MainWindow_TabControlIsEmptyHandler;

            this._Master     = false;
            this.DataContext = this;
        }
        private void OpenCustomizeSearchFolderCommand_Executed(object sender, RoutedEventArgs e)
        {
            DependencyWindow SelectedItem = this.TabControl.SelectedItem as DependencyWindow;

            if (SelectedItem == null)
            {
                return;
            }

            if (this.SearchFolder != null)
            {
                this.SearchFolder.Close();
            }

            this.SearchFolder = new SearchFolder(SelectedItem);
            this.SearchFolder.Show();
        }