예제 #1
0
        public static FileInfo DownloadDatabase(ApiUI api)
        {
            var authForm = new DatabaseList(api);

            authForm.ShowDialog();

            return(authForm.File);
        }
예제 #2
0
 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);
     }
 }