Example #1
0
        /// <summary>
        /// Method is invoked when drop element is closed.
        /// </summary>
        /// <param name="bookmarks"></param>
        /// <param name="selectedPath"></param>
        /// <param name="result"></param>
        private void DropDownClosedResult(IBookmarksViewModel bookmarks,
                                          string selectedPath,
                                          FolderBrowser.Dialogs.Interfaces.Result result)
        {
            if (result == FolderBrowser.Dialogs.Interfaces.Result.OK)
            {
                CloneBookMarks(bookmarks);

                if (string.IsNullOrEmpty(selectedPath) == false)
                {
                    this.Path = selectedPath;
                }
                else
                {
                    this.Path = PathFactory.SysDefault.Path;
                }
            }
        }
        /// <summary>
        /// Method is invoked when drop element is closed.
        /// </summary>
        /// <param name="bookmarks"></param>
        /// <param name="selectedPath"></param>
        /// <param name="result"></param>
        private void DropDownClosedResult(IBookmarkedLocationsViewModel bookmarks,
                                          string selectedPath,
                                          FolderBrowser.Dialogs.Interfaces.Result result)
        {
            if (result == FolderBrowser.Dialogs.Interfaces.Result.OK)
            {
                if (bookmarks != null)
                {
                    this.BookmarkedLocations = bookmarks.Copy();
                }

                if (string.IsNullOrEmpty(selectedPath) == false)
                {
                    this.InitialPath = selectedPath;
                }
                else
                {
                    this.InitialPath = @"C:\\";
                }
            }
        }