Пример #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            
            S3LoginForm loginForm = new S3LoginForm();

            if (File.Exists(xmlSettingsFilename))
            {
                XmlDocument doc = new XmlDocument();
                doc.Load(xmlSettingsFilename);
                XmlNode n = null;
                n = doc.SelectSingleNode("//accesskey");
                loginForm.accessKey.Text = n.InnerText;
                n = doc.SelectSingleNode("//secretkey");
                loginForm.secretKey.Text = n.InnerText;
            }

            DialogResult result = loginForm.ShowDialog();
            if (result != DialogResult.OK)
                return;

            JungleDiskConnection connection = new JungleDiskConnection(loginForm.accessKey.Text, loginForm.secretKey.Text);
            connection.BucketExists(new JungleDiskBucket(BucketType.Advanced, "blah", "blah", "blah"));

            Application.Run(new BucketViewForm(connection));
        }
Пример #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            S3LoginForm loginForm = new S3LoginForm();

            if (File.Exists(xmlSettingsFilename))
            {
                XmlDocument doc = new XmlDocument();
                doc.Load(xmlSettingsFilename);
                XmlNode n = null;
                n = doc.SelectSingleNode("//accesskey");
                loginForm.accessKey.Text = n.InnerText;
                n = doc.SelectSingleNode("//secretkey");
                loginForm.secretKey.Text = n.InnerText;
            }

            DialogResult result = loginForm.ShowDialog();

            if (result != DialogResult.OK)
            {
                return;
            }

            JungleDiskConnection connection = new JungleDiskConnection(loginForm.accessKey.Text, loginForm.secretKey.Text);

            connection.BucketExists(new JungleDiskBucket(BucketType.Advanced, "blah", "blah", "blah"));

            Application.Run(new BucketViewForm(connection));
        }
Пример #3
0
 public BucketViewForm(JungleDiskConnection connection)
 {
     this.conn = connection;
     this.conn.passwordRequiredDelegate = PasswordRequested;
     InitializeComponent();
 }
 public BucketViewForm(JungleDiskConnection connection)
 {
     this.conn = connection;
     this.conn.passwordRequiredDelegate = PasswordRequested;
     InitializeComponent();
 }