/// <summary>
        /// Drive Explorer User Control Selection Changed
        /// Implementation:
        /// Basically, I get the list of available failes that meet
        /// the criteria I specified on the UC to pass those as parameters to
        /// my File List Page;
        /// </summary>
        /// <param name="sender">User Control as Sender</param>
        /// <param name="tv">TreeView inside UC</param>
        private void ucDriveExplorer_SelectionChanged(UserControls.DriveExplorer sender, TreeView tv)
        {
            try
            {
                var images = sender.Images;
                var music  = sender.Music;
                var videos = sender.Videos;

                frameFiles.Content = new FileListPage(images, videos, music);
            }
            catch (Exception ex)
            {
                MessageBox.Show($"I'm sorry, something went wrong here: {ex.InnerException.Message}", "Error", MessageBoxButton.OK, MessageBoxImage.Information);
            }
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ucDriveExplorer = ((RMP.UserControls.DriveExplorer)(target));
                return;

            case 2:
                this.frameFiles = ((System.Windows.Controls.Frame)(target));
                return;

            case 3:
                this.frameMediaViewer = ((System.Windows.Controls.Frame)(target));
                return;
            }
            this._contentLoaded = true;
        }