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
using System; | |
using Android.App; | |
using Android.Content; | |
using Android.Views; | |
using Android.Widget; | |
using Android.Graphics; | |
using Android.Util; | |
namespace ArborTrac.Droid.UI.Controls | |
{ |
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
override public bool OnCreateOptionsMenu(IMenu menu) | |
{ | |
MenuInflater inflater = this.MenuInflater; | |
inflater.Inflate(Resource.Menu.NoteListActions, menu); | |
IMenuItem item; | |
item = menu.FindItem(Resource.Id.action_search); | |
SearchManager searchManager = (SearchManager)GetSystemService(Context.SearchService); | |
SearchView searchView = (SearchView)item.ActionView; | |
searchView.SetSearchableInfo(searchManager.GetSearchableInfo(this.ComponentName)); |
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
using System; | |
using System.Web; | |
using System.Web.UI; | |
using System.IO; | |
public partial class Upload : System.Web.UI.Page | |
{ | |
protected void Page_Load( object sender, EventArgs e ) | |
{ | |
string root_path = Server.MapPath("~/"); |
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
var content = ''; | |
var boundary = '---------------------------170062046428149'; | |
content += '--'+ boundary + '\r\n'; | |
content += 'Content-Disposition: form-data; name="uploadToken"\r\n'; | |
content += '\r\n'; | |
content += upload_token + '\r\n'; | |
content += '--'+ boundary + '\r\n'; | |
content += 'Content-Disposition: form-data; name="destFolderPath"\r\n'; | |
content += '\r\n'; |