Skip to content

Commit

Permalink
fixed modeless progress bar, final upload message and link to gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Tammik committed Oct 11, 2014
1 parent 8179844 commit e5855df
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ add-ins/Autodesk.ADN.Toolkit/Autodesk.ADN.Toolkit.Gallery/obj/**
add-ins/Autodesk.ADN.Toolkit/Autodesk.ADN.Toolkit.ViewData/obj/**
add-ins/Autodesk.ADN.AddIns/Autodesk.ADN.RvtGalleryUploader/bin/**
add-ins/Autodesk.ADN.AddIns/Autodesk.ADN.RvtGalleryUploader/obj/**
add-ins/Autodesk.ADN.AddIns/Autodesk.ADN.AcadGalleryUploader/bin/**
add-ins/Autodesk.ADN.Toolkit/Autodesk.ADN.Toolkit.Gallery/bin/**
add-ins/Autodesk.ADN.Toolkit/Autodesk.ADN.Toolkit.ViewData/bin/**
add-ins/packages/**

# OS generated files #
######################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ public class CmdUpload : IExternalCommand
static void OnTranslationCompleted(
ViewableResponse response )
{
// Translation complete ...
System.Windows.Forms.MessageBox.Show(
"Translation complete.",
"RVT Gallery Uploader" );
}

async static public void UploadToGallery(
Expand Down Expand Up @@ -143,7 +145,7 @@ var modelResponse
url,
notifier );

fProgress.ShowDialog( revit_window );
fProgress.Show( revit_window );

notifier.OnTranslationCompleted +=
OnTranslationCompleted;
Expand All @@ -157,7 +159,12 @@ var modelResponse

Util.LogError( msg );

TaskDialog.Show( "Gallery Upload", msg );
TaskDialog dlg = new TaskDialog(
"Gallery Upload" );

dlg.MainInstruction = "Upload succeeded";
dlg.MainContent = msg;
dlg.Show();
}
}

Expand Down

0 comments on commit e5855df

Please sign in to comment.