public static FileInfo DownloadDatabase(ApiUI api) { var authForm = new DatabaseList(api); authForm.ShowDialog(); return(authForm.File); }
void DownloadDatabase(object sender, EventArgs e) { try { var file = DatabaseList.DownloadDatabase(Api); if (file != null) { var ioConnection = IOConnectionInfo.FromPath(file.FullName); _host.MainWindow.OpenDatabase(ioConnection, null, false); } } catch (Exception ex) { ShowNotification(ex.Message); } }