public virtual void onClick(View v)
		{
			switch (v.Id)
			{
			case R.id.button1:
				if (mBarcodeSelectionDialog == null)
				{
					mBarcodeSelectionDialog = (new AlertDialog.Builder(Draw1dBarcodeActivity.this)).setTitle([email protected]_selection).setItems(BARCODE_SELECTION_ITEMS, this).create();
				}
				mBarcodeSelectionDialog.show();
				break;

			case R.id.button2:
				if (mHriSelectionDialog == null)
				{
					mHriSelectionDialog = (new AlertDialog.Builder(Draw1dBarcodeActivity.this)).setTitle([email protected]).setItems(HRI_ITEMS, this).create();
				}
				mHriSelectionDialog.show();
				break;

			case R.id.button3:
				print1dBarcode();
				break;
			}
		}
        public virtual void onClick(View v)
        {
            switch (v.Id)
            {
            case R.id.button1:
                if (mBarcodeSelectionDialog == null)
                {
                    mBarcodeSelectionDialog = (new AlertDialog.Builder(Draw1dBarcodeActivity.this)).setTitle([email protected]_selection).setItems(BARCODE_SELECTION_ITEMS, this).create();
                }
                mBarcodeSelectionDialog.show();
                break;

            case R.id.button2:
                if (mHriSelectionDialog == null)
                {
                    mHriSelectionDialog = (new AlertDialog.Builder(Draw1dBarcodeActivity.this)).setTitle([email protected]).setItems(HRI_ITEMS, this).create();
                }
                mHriSelectionDialog.show();
                break;

            case R.id.button3:
                print1dBarcode();
                break;
            }
        }
Beispiel #3
0
 private void showInternationalCharacterSetDialog()
 {
     if (mInternationalCharacterSetDialog == null)
     {
         mInternationalCharacterSetDialog = (new AlertDialog.Builder(CharacterSetSelectionActivity.this)).setTitle([email protected]_chracter_set).setItems(INTERNATIONAL_CHARACTER_SET_ITEMS, new OnClickListenerAnonymousInnerClassHelper(this))
                                            .create();
     }
     mInternationalCharacterSetDialog.show();
 }
 private void showErrorCorrectionLevelDialog()
 {
     if (mErrorCorrectionLevelDialog == null)
     {
         mErrorCorrectionLevelDialog = (new AlertDialog.Builder(DrawPdf417Activity.this)).setTitle([email protected]_correction_level).setItems(ERROR_CORRECTION_LEVEL_ITEMS, new OnClickListenerAnonymousInnerClassHelper(this))
                                       .create();
     }
     mErrorCorrectionLevelDialog.show();
 }
Beispiel #5
0
 private void showCodePageDialog()
 {
     if (mCodePageDialog == null)
     {
         mCodePageDialog = (new AlertDialog.Builder(CharacterSetSelectionActivity.this)).setTitle([email protected]_pages).setItems(CODE_PAGE_ITEMS, new OnClickListenerAnonymousInnerClassHelper2(this))
                           .create();
     }
     mCodePageDialog.show();
 }
 private void showExampleDialog()
 {
     if (mDialog == null)
     {
         mDialog = (new AlertDialog.Builder(DirectIoActivity.this)).setTitle("Examples").setItems(EXAMPLE_ITEMS, new OnClickListenerAnonymousInnerClassHelper(this))
                   .create();
     }
     mDialog.show();
 }
		private void showErrorCorrectionLevelDialog()
		{
			if (mErrorCorrectionLevelDialog == null)
			{

				mErrorCorrectionLevelDialog = (new AlertDialog.Builder(DrawPdf417Activity.this)).setTitle([email protected]_correction_level).setItems(ERROR_CORRECTION_LEVEL_ITEMS, new OnClickListenerAnonymousInnerClassHelper(this))
					   .create();
			}
			mErrorCorrectionLevelDialog.show();
		}
Beispiel #8
0
 public virtual void show()
 {
     android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder(this
                                                                                   ._enclosing.getContext());
     if (this.mPrompt != null)
     {
         builder.setTitle(this.mPrompt);
     }
     this.mPopup = builder.setSingleChoiceItems(this.mListAdapter, this._enclosing.getSelectedItemPosition
                                                    (), this).show();
 }
Beispiel #9
0
        private void printSample2()
        {
            if (mSampleDialog == null)
            {
                LayoutInflater inflater = (LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final android.view.View view = inflater.inflate(R.layout.dialog_page_mode_sample, null);
                View view = inflater.inflate(R.layout.dialog_page_mode_sample, null);

                mSampleDialog = (new AlertDialog.Builder(PageModeActivity.this)).setView(view).setPositiveButton("OK", new OnClickListenerAnonymousInnerClassHelper(this, view))
                                .setNegativeButton("Cancel", new OnClickListenerAnonymousInnerClassHelper2(this))
                                .create();
            }

            mSampleDialog.show();
        }
Beispiel #10
0
        public virtual void onClick(View v)
        {
            switch (v.Id)
            {
            case R.id.button1:
                if (mFontSelectionDialog == null)
                {
                    mFontSelectionDialog = (new AlertDialog.Builder(DrawTextActivity.this)).setTitle([email protected]_selection).setItems(FONT_SELECTION_ITEMS, this).create();
                }
                mFontSelectionDialog.show();
                break;

            case R.id.button2:
                printLabel();
                break;
            }
        }
		public virtual void onClick(View v)
		{
			switch (v.Id)
			{
			case R.id.button1:
				if (mFontSelectionDialog == null)
				{
					mFontSelectionDialog = (new AlertDialog.Builder(DrawTextActivity.this)).setTitle([email protected]_selection).setItems(FONT_SELECTION_ITEMS, this).create();
				}
				mFontSelectionDialog.show();
				break;

			case R.id.button2:
				printLabel();
				break;
			}
		}
Beispiel #12
0
		/// <summary>Shows menu as a dialog.</summary>
		/// <remarks>Shows menu as a dialog.</remarks>
		/// <param name="windowToken">Optional token to assign to the window.</param>
		public virtual void show(android.os.IBinder windowToken)
		{
			// Many references to mMenu, create local reference
			[email protected] menu = mMenu;
			// Get the builder for the dialog
			android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder(menu
				.getContext());
			mPresenter = new [email protected](builder.getContext
				(), [email protected]_menu_item_layout);
			mPresenter.setCallback(this);
			mMenu.addMenuPresenter(mPresenter);
			builder.setAdapter(mPresenter.getAdapter(), this);
			// Set the title
			android.view.View headerView = menu.getHeaderView();
			if (headerView != null)
			{
				// Menu's client has given a custom header view, use it
				builder.setCustomTitle(headerView);
			}
			else
			{
				// Otherwise use the (text) title and icon
				builder.setIcon(menu.getHeaderIcon()).setTitle(menu.getHeaderTitle());
			}
			// Set the key listener
			builder.setOnKeyListener(this);
			// Show the menu
			mDialog = builder.create();
			mDialog.setOnDismissListener(this);
			android.view.WindowManagerClass.LayoutParams lp = mDialog.getWindow().getAttributes
				();
			lp.type = android.view.WindowManagerClass.LayoutParams.TYPE_APPLICATION_ATTACHED_DIALOG;
			if (windowToken != null)
			{
				lp.token = windowToken;
			}
			lp.flags |= android.view.WindowManagerClass.LayoutParams.FLAG_ALT_FOCUSABLE_IM;
			mDialog.show();
		}
Beispiel #13
0
        public override void onCreate(Bundle savedInstanceState)
        {
            base.onCreate(savedInstanceState);
            ContentView = R.layout.activity_advanced_camera_capturer;

            localMedia        = LocalMedia.create(this);
            videoView         = (VideoView)findViewById(R.id.video_view);
            toggleFlashButton = (Button)findViewById(R.id.toggle_flash_button);
            takePictureButton = (Button)findViewById(R.id.take_picture_button);
            pictureImageView  = (ImageView)LayoutInflater.inflate(R.layout.picture_image_view, null);
            pictureDialog     = (new AlertDialog.Builder(this)).setView(pictureImageView).setTitle(null).setPositiveButton([email protected], new OnClickListenerAnonymousInnerClassHelper(this))
                                .create();

            if (!checkPermissionForCamera())
            {
                requestPermissionForCamera();
            }
            else
            {
                addCameraVideo();
            }
        }
Beispiel #14
0
 /// <summary>Shows menu as a dialog.</summary>
 /// <remarks>Shows menu as a dialog.</remarks>
 /// <param name="windowToken">Optional token to assign to the window.</param>
 public virtual void show(android.os.IBinder windowToken)
 {
     // Many references to mMenu, create local reference
     [email protected] menu = mMenu;
     // Get the builder for the dialog
     android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder(menu
                                                                                   .getContext());
     mPresenter = new [email protected](builder.getContext
                                                                        (), [email protected]_menu_item_layout);
     mPresenter.setCallback(this);
     mMenu.addMenuPresenter(mPresenter);
     builder.setAdapter(mPresenter.getAdapter(), this);
     // Set the title
     android.view.View headerView = menu.getHeaderView();
     if (headerView != null)
     {
         // Menu's client has given a custom header view, use it
         builder.setCustomTitle(headerView);
     }
     else
     {
         // Otherwise use the (text) title and icon
         builder.setIcon(menu.getHeaderIcon()).setTitle(menu.getHeaderTitle());
     }
     // Set the key listener
     builder.setOnKeyListener(this);
     // Show the menu
     mDialog = builder.create();
     mDialog.setOnDismissListener(this);
     android.view.WindowManagerClass.LayoutParams lp = mDialog.getWindow().getAttributes
                                                           ();
     lp.type = android.view.WindowManagerClass.LayoutParams.TYPE_APPLICATION_ATTACHED_DIALOG;
     if (windowToken != null)
     {
         lp.token = windowToken;
     }
     lp.flags |= android.view.WindowManagerClass.LayoutParams.FLAG_ALT_FOCUSABLE_IM;
     mDialog.show();
 }
		private void printSample2()
		{
			if (mSampleDialog == null)
			{
				LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final android.view.View view = inflater.inflate(R.layout.dialog_page_mode_sample, null);
				View view = inflater.inflate(R.layout.dialog_page_mode_sample, null);

				mSampleDialog = (new AlertDialog.Builder(PageModeActivity.this)).setView(view).setPositiveButton("OK", new OnClickListenerAnonymousInnerClassHelper(this, view))
			   .setNegativeButton("Cancel", new OnClickListenerAnonymousInnerClassHelper2(this))
			   .create();
			}

			mSampleDialog.show();
		}
Beispiel #16
0
			public virtual void show()
			{
				android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder(this
					._enclosing.getContext());
				if (this.mPrompt != null)
				{
					builder.setTitle(this.mPrompt);
				}
				this.mPopup = builder.setSingleChoiceItems(this.mListAdapter, this._enclosing.getSelectedItemPosition
					(), this).show();
			}
Beispiel #17
0
			public virtual void dismiss()
			{
				this.mPopup.dismiss();
				this.mPopup = null;
			}
Beispiel #18
0
 public virtual void dismiss()
 {
     this.mPopup.dismiss();
     this.mPopup = null;
 }
		public override void onCreate(Bundle savedInstanceState)
		{
			base.onCreate(savedInstanceState);
			ContentView = R.layout.activity_advanced_camera_capturer;

			localMedia = LocalMedia.create(this);
			videoView = (VideoView) findViewById(R.id.video_view);
			toggleFlashButton = (Button) findViewById(R.id.toggle_flash_button);
			takePictureButton = (Button) findViewById(R.id.take_picture_button);
			pictureImageView = (ImageView) LayoutInflater.inflate(R.layout.picture_image_view, null);
			pictureDialog = (new AlertDialog.Builder(this)).setView(pictureImageView).setTitle(null).setPositiveButton([email protected], new OnClickListenerAnonymousInnerClassHelper(this))
				   .create();

			if (!checkPermissionForCamera())
			{
				requestPermissionForCamera();
			}
			else
			{
				addCameraVideo();
			}
		}
		private void showExampleDialog()
		{
			if (mDialog == null)
			{
				mDialog = (new AlertDialog.Builder(DirectIoActivity.this)).setTitle("Examples").setItems(EXAMPLE_ITEMS, new OnClickListenerAnonymousInnerClassHelper(this))
			   .create();
			}
			mDialog.show();
		}