C# Class RIM.VSNDK_Package.Import.Model.ImportModel

DataModel Class for the Import Dialog
Inheritance: INotifyPropertyChanged
Show file Open project: blackberry/VSPlugin Class Usage Examples

Public Methods

Method Description
AddBlackBerryConfigurations ( Project proj ) : void

add blackberry configurations

AddSummaryString ( string entry ) : void

Helper function to add a summary string to the list

ImportModel ( ) : System

ImportModel Constructor

WalkDirectoryTree ( Project proj, DirectoryInfo sourceDir, DirectoryInfo destinationDir, VCFilter filter ) : bool

Recursive Function to walk a specified directory tree and add the files into a Visual Studio C project.

Protected Methods

Method Description
OnPropertyChanged ( string propName ) : void

Fire the PropertyChnaged event handler on change of property

Private Methods

Method Description
AddFileToProject ( Project proj, string source, string destination, VCFilter filter ) : void

Add File to specified project

AddFolderToProject ( Project proj, string dirInfo, string newDir, VCFilter filter ) : VCFilter

Add Folder to Specified Project

Method Details

AddBlackBerryConfigurations() public method

add blackberry configurations
public AddBlackBerryConfigurations ( Project proj ) : void
proj Project
return void

AddSummaryString() public method

Helper function to add a summary string to the list
public AddSummaryString ( string entry ) : void
entry string
return void

ImportModel() public method

ImportModel Constructor
public ImportModel ( ) : System
return System

OnPropertyChanged() protected method

Fire the PropertyChnaged event handler on change of property
protected OnPropertyChanged ( string propName ) : void
propName string
return void

WalkDirectoryTree() public method

Recursive Function to walk a specified directory tree and add the files into a Visual Studio C project.
public WalkDirectoryTree ( Project proj, DirectoryInfo sourceDir, DirectoryInfo destinationDir, VCFilter filter ) : bool
proj Project Destination Project
sourceDir System.IO.DirectoryInfo Source Directory to begin walking
destinationDir System.IO.DirectoryInfo Destination Directory of new project to copy files to
filter VCFilter VCFilter object to add files to
return bool