Пример #1
0
        public async void changeBucketAcl()
        {
            string bucketName            = buckets[selectedBuketIndex].Name;
            CannedAccessControlList type = await buckets.getBucketAcl(bucketName);


            CreateBucketViewModel createBucketViewModel = new CreateBucketViewModel(bucketName, type, events);
            dynamic settings = new ExpandoObject();

            settings.WindowStartupLocation = WindowStartupLocation.CenterScreen;

            settings.Title = "修改Bucket权限";
            windowManager.ShowDialog(createBucketViewModel, null, settings);
        }
Пример #2
0
        public void createBucket2()
        {
            //if (TextBoxActive == Visibility.Visible && inputBucketName != "")
            //{
            //    createBucket();
            //}

            CreateBucketViewModel createBucketViewModel = new CreateBucketViewModel(events);
            dynamic settings = new ExpandoObject();

            settings.WindowStartupLocation = WindowStartupLocation.CenterScreen;

            settings.Title = "创建Bucket";
            windowManager.ShowDialog(createBucketViewModel, null, settings);
        }