Esempio n. 1
0
 /// <summary>
 /// Allows the user to pick a RAF file from the rafContentView control...
 /// 
 /// TODO: 5 second timer for stopping
 /// TODO: This needs to be made better.  it's pretty annoying to work with on the user-viewpoint
 /// </summary>
 /// <returns></returns>
 private string PickRafPath(bool includeFiles)
 {
     RAFInMemoryFileSystemObject[] nodes = new RAFInMemoryFileSystemObject[this.rafContentView.Nodes.Count];
     for (int i = 0; i < nodes.Length; i++)
         nodes[i] = (RAFInMemoryFileSystemObject)this.rafContentView.Nodes[i].Clone();
     RAFPathSelector selectorDialog = new RAFPathSelector(nodes, includeFiles);
     selectorDialog.ShowDialog();
     return selectorDialog.SelectedNodePath;
 }
Esempio n. 2
0
        /// <summary>
        /// Allows the user to pick a RAF file from the rafContentView control...
        ///
        /// TODO: 5 second timer for stopping
        /// TODO: This needs to be made better.  it's pretty annoying to work with on the user-viewpoint
        /// </summary>
        /// <returns></returns>
        private string PickRafPath(bool includeFiles)
        {
            RAFInMemoryFileSystemObject[] nodes = new RAFInMemoryFileSystemObject[this.rafContentView.Nodes.Count];
            for (int i = 0; i < nodes.Length; i++)
            {
                nodes[i] = (RAFInMemoryFileSystemObject)this.rafContentView.Nodes[i].Clone();
            }
            RAFPathSelector selectorDialog = new RAFPathSelector(nodes, includeFiles);

            selectorDialog.ShowDialog();
            return(selectorDialog.SelectedNodePath);
        }