示例#1
0
        private void awsOpen_Click(object sender, EventArgs e)
        {
            string svc = null;
            if(_radioREST.Checked) {
                svc = "REST";
            } else if(_radioSOAP.Checked) {
                svc = "SOAP";
            }

            string acl = null;
            if(_radioPrivateOnly.Checked) {
                acl = "PrivateOnly";
            } else if(_radioPublicRead.Checked) {
                acl = "PublicRead";
            } else if(_radioPublicWrite.Checked) {
                acl = "PublicWrite";
            }

            Form form = new TreeWindow(_clip, new ch.ph.FileSystem.AmazonS3.FileSystem(svc, _awsAccessKeyId.Text, _awsSecretAccessKey.Text, _awsBucket.Text, acl));
            form.Show();
        }
示例#2
0
 private void localOpen_Click(object sender, EventArgs e)
 {
     Form form = new TreeWindow(_clip, new ch.ph.FileSystem.LocalFileSystem.FileSystem(_localRootDir.Text));
     form.Show();
 }