当前位置: 首页>>代码示例>>C#>>正文


C# Bundle.PutBoolean方法代码示例

本文整理汇总了C#中Bundle.PutBoolean方法的典型用法代码示例。如果您正苦于以下问题:C# Bundle.PutBoolean方法的具体用法?C# Bundle.PutBoolean怎么用?C# Bundle.PutBoolean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Bundle的用法示例。


在下文中一共展示了Bundle.PutBoolean方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnRefresh

 public static void OnRefresh(Account account)
 {
     var extras = new Bundle();
     //http://catinean.com/2014/08/03/force-your-syncadapter-to-sync/ to force resync
     extras.PutBoolean(ContentResolver.SyncExtrasManual, true);
     extras.PutBoolean(ContentResolver.SyncExtrasExpedited, true);
     ContentResolver.RequestSync(account, SyncHelper.CONTENT_AUTHORITY, extras);
 }
开发者ID:lsgsk,项目名称:AndroidPatterns,代码行数:8,代码来源:BaseAppCompatActivity.cs

示例2: SaveViewFieldsValues

		private void SaveViewFieldsValues(Bundle outState) {
			outState.PutAll(outState);
			outState.PutString(keyAdvertisementTitleText, advertisementTitle.Text);
			outState.PutString(keyAdvertisementDescriptionText, advertisementDescription.Text);
			outState.PutBoolean(keyRdBtnOnlyForSellValue, rdBtnOnlyForSell.Checked);
			outState.PutString(keyAdvertisementPriceValue, advertisementPrice.Text);
			outState.PutString(keyPhotoView1Path, mPhotoPath);
			outState.PutBoolean(keyPhotoIsTakingValue, photoIsTaking);
		}
开发者ID:MarcinSzyszka,项目名称:MobileSecondHand,代码行数:9,代码来源:AddNewAdvertisementActivity.cs

示例3: NewInstance

		/**
     * Return an instance of TimeFragment with its bundle filled with the
     * constructor arguments. The values in the bundle are retrieved in
     * {@link #onCreateView()} below to properly initialize the TimePicker.
     *
     * @param theme
     * @param hour
     * @param minute
     * @param isClientSpecified24HourTime
     * @param is24HourTime
     * @return
     */
		public static TimeFragment NewInstance(int Theme, int Hour, int Minute,bool IsClientSpecified24HourTime, bool Is24HourTime)
		{
			TimeFragment timeFragment = new TimeFragment();

			Bundle bundle = new Bundle();
			bundle.PutInt("theme", Theme);
			bundle.PutInt("hour", Hour);
			bundle.PutInt("minute", Minute);
			bundle.PutBoolean("isClientSpecified24HourTime", IsClientSpecified24HourTime);
			bundle.PutBoolean("is24HourTime", Is24HourTime);
			timeFragment.Arguments=bundle;

			return timeFragment;
		}
开发者ID:jeedey93,项目名称:xamarin-android-samples,代码行数:26,代码来源:TimeFragment.cs

示例4: NewInstance

        public static TimeFragment NewInstance(int theme,int hour,int minute,
			bool isClientSpecified24HourTime,bool is24HourTime)
        {
            TimeFragment t = new TimeFragment ();
            Bundle b = new Bundle ();
            b.PutInt ("theme", theme);
            b.PutInt ("hour", hour);
            b.PutInt ("minute", minute);
            b.PutBoolean ("isClientSpecified24HourTime", isClientSpecified24HourTime);
            b.PutBoolean ("is24HourTime", is24HourTime);
            t.Arguments = b;

            return t;
        }
开发者ID:meirongIn83,项目名称:SlideDatetimePickerCSharp,代码行数:14,代码来源:TimeFragment.cs

示例5: Instance

		public static SimpleDialogFragment Instance(string title, string textValue, bool html = false, bool okay = false)
		{
			SimpleDialogFragment d = new SimpleDialogFragment ();

			Bundle args = new Bundle ();

			args.PutString (StringVarConsts.EXTRA_TITLE, title);
			args.PutString (StringVarConsts.EXTRA_TEXT_1, textValue);
			args.PutBoolean (StringVarConsts.EXTRA_HTML_FLAG, html);
			args.PutBoolean (StringVarConsts.EXTRA_OK_FLAG, okay);

			d.Arguments = args;

			return d;
		}
开发者ID:KiranKumarAlugonda,项目名称:TXTSHD,代码行数:15,代码来源:SimpleDialogFragment.cs

示例6: listView_ItemClick

		void listView_ItemClick(object sender, AdapterView.ItemLongClickEventArgs e){
			// content to pass 
			var bundle1 = new Bundle();
			LichHoc lh = BLichHoc.GetLH(SQLite_Android.GetConnection (),listCT[e.Position].Id);

			bundle1.PutString ("MH", lh.Id);
			bundle1.PutBoolean ("isLHT", false);
			bundle1.PutBoolean ("check", false);
			bundle1.PutString ("Thu", listCT [e.Position].Thu);
			bundle1.PutString ("TietBD", listCT [e.Position].TietBatDau);

			Intent myintent = new Intent (Activity, typeof(Remider));
			myintent.PutExtra ("RemindValue", bundle1);
			StartActivity (myintent);
		}
开发者ID:tienbui123,项目名称:Mobile-VS2,代码行数:15,代码来源:LichHocHKFragment.cs

示例7: Create

		public static SignInFragment Create(bool edit) {
			var args = new Bundle();
			args.PutBoolean(ArgEdit, edit);
			var fragment = new SignInFragment();
			fragment.Arguments = args;
			return fragment;
		}
开发者ID:raulma,项目名称:monodroid-samples,代码行数:7,代码来源:SignInFragment.cs

示例8: OnSaveInstanceState

        public override void OnSaveInstanceState(Bundle outState)
        {
            outState.PutBoolean("CheckBox", _checkBox.Enabled);
            outState.PutString("EditText", _editText.Text);

            base.OnSaveInstanceState(outState);
        }
开发者ID:RealAikido,项目名称:MobileSamples,代码行数:7,代码来源:FormElementsTabFragment.cs

示例9: OnSaveInstanceState

 protected override void OnSaveInstanceState(Bundle outState)
 {
     if (IsViewPagerActive())
     {
         outState.PutBoolean(IsLockedArgument, viewPager.IsLocked);
     }
     base.OnSaveInstanceState(outState);
 }
开发者ID:cyecp,项目名称:XamarinComponents,代码行数:8,代码来源:ViewPagerSampleActivity.cs

示例10: Start

        public override void Start()
        {
            Bundle hints = new Bundle();
            foreach (Symbology symbology in _enabled)
            {
                switch (symbology)
                {
                    case Symbology.UPCE: hints.PutBoolean(DO_UPCE, true); break;
                    case Symbology.EAN8: hints.PutBoolean(DO_EAN8, true); break;
                    case Symbology.EAN13: hints.PutBoolean(DO_EAN13, true); break;
                    case Symbology.Code39: hints.PutBoolean(DO_CODE93, true); break;
                    case Symbology.Code93: hints.PutBoolean(DO_CODE39, true); break;
                    case Symbology.Code128: hints.PutBoolean(DO_CODE128, true); break;
                    case Symbology.Sticky: hints.PutBoolean(DO_STICKY, true); break;

                    case Symbology.UPCA: break;
                    default: break;
                }
            }
            hints.PutString(DO_BROADCAST_TO, RedLaserScanReceiver.BROADCAST_ACTION);

            Intent i = new Intent();
            i.SetAction("com.target.redlasercontainer.SCAN");
            i.PutExtras(hints);

            Log.Info("BarcodeScanning", "broadcast intent with action com.target.redlasercontainter.SCAN sent");
            try
            {
                _context.SendBroadcast(i);
            }
            catch (Exception ex)
            {
                Log.Error("BarcodeScanning", ex.Message);
            }
        }
开发者ID:oduma,项目名称:Sciendo.Fitas.Droid,代码行数:35,代码来源:RedLaser.MD.cs

示例11: NewInstance

 public static BookingsTabFragment NewInstance(int position, bool workshop)
 {
     var f = new BookingsTabFragment();
     var b = new Bundle();
     b.PutInt("position", position);
     b.PutBoolean("isWorkshop", workshop);
     f.Arguments = b;
     return f;
 }
开发者ID:paul-pagnan,项目名称:helps,代码行数:9,代码来源:BookingsTabFragment.cs

示例12: SetSlotReservationFlags

		public static void SetSlotReservationFlags(Bundle extras, bool reservePlayingQueueSlot,
			bool reserveSkipToNextSlot, bool reserveSkipToPrevSlot) {
			if (reservePlayingQueueSlot) {
				extras.PutBoolean(SlotReservationQueue, true);
			} else {
				extras.Remove(SlotReservationQueue);
			}
			if (reserveSkipToPrevSlot) {
				extras.PutBoolean(SlotReservationSkipToPrev, true);
			} else {
				extras.Remove(SlotReservationSkipToPrev);
			}
			if (reserveSkipToNextSlot) {
				extras.PutBoolean(SlotReservationSkipToNext, true);
			} else {
				extras.Remove(SlotReservationSkipToNext);
			}
		}
开发者ID:simpleverso,项目名称:monodroid-samples,代码行数:18,代码来源:CarHelper.cs

示例13: NewInstance

 public static RegisterCMFragment NewInstance(String email, bool IsUpdate)
 {
     var fragment = new RegisterCMFragment ();
     var args = new Bundle ();
     args.PutString (EMAIL, email);
     args.PutBoolean (ISUDAPE, IsUpdate);
     fragment.Arguments = args;
     return fragment;
 }
开发者ID:jhondiaz,项目名称:Poraka,代码行数:9,代码来源:RegisterCMFragment.cs

示例14: OnSaveInstanceState

        protected override void OnSaveInstanceState(Bundle outState)
        {
            outState.PutBoolean ("showLogin", this.showLogin);

            if (ActionBar.SelectedTab != null)
                outState.PutString ("selected", (string)ActionBar.SelectedTab.Tag);

            base.OnSaveInstanceState (outState);
        }
开发者ID:JANCARLO123,项目名称:google-apis,代码行数:9,代码来源:MainActivity.cs

示例15: newInstance

		public static Android.Support.V4.App.Fragment newInstance(MainActivity context, int pos, float scale,bool IsBlured)
		{

			Bundle b = new Bundle();
			b.PutInt("pos", pos);
			b.PutFloat("scale", scale);
			b.PutBoolean("IsBlured", IsBlured);	
			MyFragment myf = new MyFragment ();
			return Android.Support.V4.App.Fragment.Instantiate (context,myf.Class.Name, b);
		}
开发者ID:jeedey93,项目名称:xamarin-android-samples,代码行数:10,代码来源:MyFragment.cs


注:本文中的Bundle.PutBoolean方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。