public CloudRootFolder(OnlineTarget onlineTarget) { switch (onlineTarget) { case OnlineTarget.NeroCloud: { onlineCloud = DataManager.MyCloudInstance; this.Title = ResourceProvider.LoadString("IDS_ONLINEJOB_RESTORE_ROOT_NAME"); this.Icon = ResourceProvider.LoadImageSource("IMG_CLOUDTREEICON_NERO"); } break; case OnlineTarget.GoogleDrive: { onlineCloud = DataManager.MyCloudInstance.GoogleCloud; this.Title = ResourceProvider.LoadString("IDS_ONLINEJOB_RESTORE_ROOT_NAME_GOOGLE"); this.Icon = ResourceProvider.LoadImageSource("IMG_CLOUDTREEICON_GOOGLE"); } break; case OnlineTarget.AmazonCloud: { onlineCloud = DataManager.MyCloudInstance.AmazonCloud; this.Title = ResourceProvider.LoadString("IDS_ONLINEJOB_RESTORE_ROOT_NAME_AMAZON"); this.Icon = ResourceProvider.LoadImageSource("IMG_CLOUDTREEICON_AMAZON"); } break; } if (null == onlineCloud) { throw new ArgumentNullException(onlineTarget.ToString() + " IMyCloud is NULL!"); } CloudItem = onlineCloud.RootFolder; this.IsExpanded = true; this.IsSelected = true; this.IsChecked = true; this.Parent = this; this.FullPath = Path.DirectorySeparatorChar.ToString(); }
internal CloudExplorerFactory(OnlineTarget onlineTarget) { this.onlineTarget = onlineTarget; }