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();
}
}