Exemple #1
0
        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));
        }
Exemple #2
0
 public Form3(MappedFolder existing)
 {
     InitializeComponent();
     textBox1.Text     = existing.HostFolder;
     textBox2.Text     = existing.SandboxFolder;
     checkBox1.Checked = existing.ReadOnly;
 }
Exemple #3
0
 private void button2_Click(object sender, EventArgs e)
 {
     SharedFolder = new MappedFolder
     {
         HostFolder    = textBox1.Text,
         SandboxFolder = textBox2.Text,
         ReadOnly      = checkBox1.Checked
     };
     IsOK = true;
     Close();
 }