public void SetVerts(PathInterface path) { mVerts.Clear(); foreach (var vert in path.GetVerts()) { mVerts.Add(vert); } }
public FileListDialog(PathInterface c) { this.c = c; // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // m_fbd = new FileBrowserDialog(); }
/// <summary> /// Initializes a new instance of the OpenNETCF.Windows.Forms.FolderBrowserDialog class. /// </summary> public FolderBrowserDialog(PathInterface c) { m_dialog = new FolderBrowserForm(c); }
/// <summary> /// Initializes a new instance of the OpenNETCF.Windows.Forms.FileBrowserDialog class. /// </summary> public FileBrowserDialog(PathInterface c) { m_dialog = new FileBrowserForm(c); }
public FolderBrowserForm(PathInterface c) { this.c=c; // // TODO: Add constructor logic here // InitializeComponent(); InitializeInterface(); //add folder images to imagelist ilIcons.Images.Add(new System.Drawing.Bitmap(MITesDataCollection.Resource1.Folder)); #if (PocketPC) ilIcons.Images.Add(new System.Drawing.Bitmap(MITesDataCollection.Resource1.Device)); #else ilIcons.Images.Add(new System.Drawing.Bitmap(MITesDataCollection.Resource1.PC)); #endif ilIcons.Images.Add(new System.Drawing.Bitmap(MITesDataCollection.Resource1.Card)); //set default image index to 0 tvFolders.ImageIndex = 0; tvFolders.SelectedImageIndex = 0; //use a backslash between path levels tvFolders.PathSeparator = "\\"; //setup default tree Reset(); }