This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void SendFileToServer(string fileFullPath) | |
{ | |
FileInfo fi = new FileInfo(fileFullPath); | |
string fileName = fi.Name; | |
byte[] fileContents = File.ReadAllBytes(fi.FullName); | |
Uri webService = new Uri(@"http://avalidwebservice.com"); | |
HttpRequestMessage requestMessage = new HttpRequestMessage(HttpMethod.Post, webService); | |
requestMessage.Headers.ExpectContinue = false; | |
MultipartFormDataContent multiPartContent = new MultipartFormDataContent("----MyGreatBoundary"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ShowSubviewAt(CGRect rect, UIView subView, Action didFinishAnimation) | |
{ | |
UIView cover = new UIView(); | |
cover.Frame = new CGRect(0, 0, AppWindow.Bounds.Width, AppWindow.Bounds.Height); | |
//cover.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight; | |
//cover.Opaque = true; | |
cover.BackgroundColor = UIColor.Clear; | |
cover.AddGestureRecognizer(new UITapGestureRecognizer(() => | |
{ |
NewerOlder