本文整理汇总了C#中Bundle.PutStringArrayList方法的典型用法代码示例。如果您正苦于以下问题:C# Bundle.PutStringArrayList方法的具体用法?C# Bundle.PutStringArrayList怎么用?C# Bundle.PutStringArrayList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bundle
的用法示例。
在下文中一共展示了Bundle.PutStringArrayList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateTagDialogFragment
public CreateTagDialogFragment (Guid workspaceId, IList<TimeEntryData> timeEntryList)
{
var ids = timeEntryList.Select ( t => t.Id.ToString ()).ToList ();
var args = new Bundle ();
args.PutString (WorkspaceIdArgument, workspaceId.ToString ());
args.PutStringArrayList (TimeEntriesIdsArgument, ids);
Arguments = args;
}
示例2: EditGroupedTimeEntryFragment
public EditGroupedTimeEntryFragment (IList<TimeEntryData> timeEntryList)
{
var ids = timeEntryList.Select ( t => t.Id.ToString ()).ToList ();
var args = new Bundle ();
args.PutStringArrayList (TimeEntriesIdsArgument, ids);
Arguments = args;
viewModel = new EditTimeEntryViewModel (timeEntryList);
}
示例3: NewInstance
public static EditGroupedTimeEntryFragment NewInstance (IList<string> timeEntryListIds)
{
var fragment = new EditGroupedTimeEntryFragment ();
var args = new Bundle ();
args.PutStringArrayList (TimeEntriesIdsArgument, timeEntryListIds);
fragment.Arguments = args;
return fragment;
}
示例4: NewInstance
public static ProjectListFragment NewInstance (IList<string> timeEntryIds)
{
var fragment = new ProjectListFragment ();
var args = new Bundle ();
args.PutStringArrayList (TimeEntryIdsArg, timeEntryIds);
fragment.Arguments = args;
return fragment;
}
示例5: selectCity
private void selectCity(List<string> citylist)
{
Intent deviceList = new Intent(this, typeof(selectcity));
Bundle bundle = new Bundle(); // Bundle的底层是一个HashMap<String, Object
bundle.PutStringArrayList("citylist", citylist);
deviceList.PutExtra("bundle", bundle);
StartActivity(deviceList);
}
示例6: ChooseTimeEntryTagsDialogFragment
public ChooseTimeEntryTagsDialogFragment (Guid workspaceId, IList<TimeEntryData> timeEntryList)
{
var ids = timeEntryList.Select ( t => t.Id.ToString ()).ToList ();
var args = new Bundle ();
args.PutString (WorkspaceIdArgument, workspaceId.ToString ());
args.PutStringArrayList (TimeEntriesIdsArgument, ids);
Arguments = args;
viewModel = new TagListViewModel (workspaceId, timeEntryList);
}
示例7: NewInstance
public static ChooseTimeEntryTagsDialogFragment NewInstance (Guid workspaceId, List<Guid> tagIds)
{
var fragment = new ChooseTimeEntryTagsDialogFragment ();
var args = new Bundle ();
args.PutString (WorkspaceIdArgument, workspaceId.ToString ());
var tagIdsStrings = tagIds.Select (t => t.ToString ()).ToList ();
args.PutStringArrayList (SelectedTagNamesArgument, tagIdsStrings);
fragment.Arguments = args;
return fragment;
}
示例8: NewInstance
public static AddMovieFragmentTest NewInstance(string title, List<string> trakkedList)
{
var frag = new AddMovieFragmentTest();
var args = new Bundle();
args.PutString("title", title);
args.PutStringArrayList("trakked", trakkedList);
frag.Arguments = args;
return frag;
}
示例9: DeleteTimeEntriesPromptDialogFragment
public DeleteTimeEntriesPromptDialogFragment (IEnumerable<TimeEntryModel> models)
{
var ids = new List<string> ();
foreach (var model in models) {
ids.Add (model.Id.ToString ());
}
var args = new Bundle ();
args.PutStringArrayList (TimeEntryIdsArgument, ids);
Arguments = args;
}
示例10: OnSaveInstanceState
public override void OnSaveInstanceState(Bundle outState)
{
base.OnSaveInstanceState(outState);
MovieList myList = new MovieList();
myList.movieList = Movies;
string myJsonString = JsonConvert.SerializeObject(myList);
outState.PutString(Bundle_MOVIELIST, myJsonString);
outState.PutStringArrayList(Bundle_TRAKKEDLIST, TrakkedMoviesTMDBIDs);
outState.PutInt(Bundle_PAGENUMBER, _pageNumber);
}
示例11: DeleteTimeEntriesPromptDialogFragment
public DeleteTimeEntriesPromptDialogFragment (IEnumerable<TimeEntryModel> models)
{
var ids = new List<string> ();
foreach (var model in models) {
if (!model.IsShared || model.DeletedAt != null)
continue;
// Need to ensure the model IsPersisted, as we need to be able to access this model even
// if the system suspends our process
model.IsPersisted = true;
ids.Add (model.Id.Value.ToString ());
}
var args = new Bundle ();
args.PutStringArrayList (TimeEntryIdsArgument, ids);
Arguments = args;
}
示例12: QueryInventoryAsync
/// <summary>
/// Queries the inventory asynchronously.
/// </summary>
/// <returns>List of strings</returns>
/// <param name="skuList">Sku list.</param>
/// <param name="itemType">Item type.</param>
public Task<IList<string>> QueryInventoryAsync (List<string> skuList, string itemType)
{
var getSkuDetailsTask = Task.Factory.StartNew<IList<string>> (() => {
Bundle querySku = new Bundle ();
querySku.PutStringArrayList (Constants.ItemIdList, skuList);
Bundle skuDetails = _billingService.GetSkuDetails (Constants.APIVersion, _activity.PackageName, itemType, querySku);
if (skuDetails.ContainsKey (Constants.SkuDetailsList)) {
return skuDetails.GetStringArrayList (Constants.SkuDetailsList);
}
return null;
});
return getSkuDetailsTask;
}
示例13: newInstance
public static SearchYearFragment newInstance(List<string> yearsIn)
{
SearchYearFragment yf = new SearchYearFragment ();
Bundle bdl = new Bundle ();
bdl.PutStringArrayList ("years", yearsIn);
yf.Arguments = bdl;
return yf;
}
示例14: newInstance
public static SearchPartFragment newInstance(List<string> partsIn)
{
SearchPartFragment pf = new SearchPartFragment ();
Bundle bdl = new Bundle ();
bdl.PutStringArrayList ("parts", partsIn);
pf.Arguments = bdl;
return pf;
}
示例15: SaveState
public override IParcelable SaveState()
{
Bundle state = null;
if (_savedState.Any())
{
state = new Bundle();
var fss = new IParcelable[_savedState.Count];
for (var i = 0; i < _savedState.Count; i++)
fss[i] = _savedState.ElementAt(i);
state.PutParcelableArray("states", fss);
state.PutStringArrayList("tags", _savedFragmentTags);
}
for (var i = 0; i < _fragments.Count; i++)
{
var f = _fragments.ElementAtOrDefault(i);
if (f == null)
continue;
if (state == null)
state = new Bundle();
var key = "f" + i;
_fragmentManager.PutFragment(state, key, f);
}
return state;
}