Modified how attachments are pushed to the API.
Added support for BMP and GIF image types.
This commit is contained in:
@@ -59,11 +59,22 @@ namespace PWAPPv2
|
||||
SupportedImageTypes.Add(".jpeg");
|
||||
SupportedImageTypes.Add(".jpg");
|
||||
SupportedImageTypes.Add(".png");
|
||||
SupportedImageTypes.Add(".gif");
|
||||
SupportedImageTypes.Add(".bmp");
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
args = App.Args;
|
||||
if(args.Length == 0)
|
||||
{
|
||||
throw new NoArgumentsException();
|
||||
}
|
||||
}
|
||||
catch (NoArgumentsException)
|
||||
{
|
||||
System.Windows.MessageBox.Show("No Patient ID was selected.\nPlease select a patient and retry the referral.");
|
||||
return;
|
||||
}
|
||||
catch (Exception)
|
||||
{ }
|
||||
@@ -431,4 +442,9 @@ namespace PWAPPv2
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public class NoArgumentsException : Exception
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user