/// <summary> /// Initializes a new instance of the <see cref="ResourceDataItem"/> class. /// </summary> /// <param name="rdi">The rdi.</param> public ResourceDataItem(ResourceDataItem rdi) { m_resourceName = rdi.m_resourceName; m_contentType = rdi.m_contentType; m_filename = rdi.m_filename; m_dataType = rdi.m_dataType; m_entryType = rdi.m_entryType; }
private void AddResourceData_Click(object sender, EventArgs e) { if (BrowseResourceDataFile.ShowDialog(this) == DialogResult.OK) { ResourceDataItem rdi = new ResourceDataItem( System.IO.Path.GetFileName(BrowseResourceDataFile.FileName), "application/octet-stream", BrowseResourceDataFile.FileName, "File"); rdi.EntryType = EntryTypeEnum.Added; ((ResourceItem)ResourceTree.SelectedNode.Tag).Items.Add(rdi); RefreshFileList(); } }