public void AddFile(string sourceFileName, string targetFileName) { var info = new FileInfo(sourceFileName); int index = this.AddFileData(sourceFileName); this.items.Add(new ArchiveItem(targetFileName, MappedFolder.Convert(info.Attributes), info.LastWriteTimeUtc, index, info.Length)); }
public Form3(MappedFolder existing) { InitializeComponent(); textBox1.Text = existing.HostFolder; textBox2.Text = existing.SandboxFolder; checkBox1.Checked = existing.ReadOnly; }
private void button2_Click(object sender, EventArgs e) { SharedFolder = new MappedFolder { HostFolder = textBox1.Text, SandboxFolder = textBox2.Text, ReadOnly = checkBox1.Checked }; IsOK = true; Close(); }