Modified how attachments are pushed to the API.

Added support for BMP and GIF image types.
This commit is contained in:
goomatt33
2024-03-25 13:21:14 -04:00
parent f31302438d
commit 205b3d8014
10 changed files with 202 additions and 17 deletions
+16
View File
@@ -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
{
}
}