public PutioFsItem(PutioFsDataProvider data_provider, PutioFolder parent) { this.DataProvider = data_provider; if (parent != null) { this.Fs = parent.Fs; } }
protected PutioFsItem(PutioFileSystem fs) { Item item = new Item(); item.Id = "0"; item.Name = ""; item.IsDirectory = true; this.Fs = fs; this.DataProvider = new PutioFsApiDataProvider(this.Fs, item); this.Parent = null; }
public PutioFsApiDataProvider(PutioFileSystem fs, Item putio_item) { this.PutioItem = putio_item; this.Fs = fs; }
private PutioFolder(PutioFileSystem fs) : base(fs) { }
public static PutioFolder GetRootFolder(PutioFileSystem fs) { return(new PutioFolder(fs)); }
public PutioFsItem(PutioFsDataProvider data_provider, PutioFolder parent) { this.DataProvider = data_provider; if (parent != null) this.Fs = parent.Fs; }
public static PutioFolder GetRootFolder(PutioFileSystem fs) { return new PutioFolder(fs); }
public void TryMount(object Sender, EventArgs e) { try { this.MainWindow.ToggleMountUnmount(false); Api api = this.GetApiInfoFromSettings(); api.GetUserInfo(); this.PutioFileSystem = new PutioFileSystem(api); Thread dokan_thread = new Thread(PutioDokanOperations._DokanMount); dokan_thread.Start(this); Mounted = true; this.MainWindow.ToggleMountUnmount(true); } catch (PutioException) { MessageBox.Show("Put.io user not found."); this.SettingsForm.InvokeSettings(); } catch (Exception) { MessageBox.Show("Can not connect to Put.io"); this.SettingsForm.InvokeSettings(); } }