Пример #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Override @NonNull public android.app.Dialog onCreateDialog(android.os.Bundle savedInstanceState)
        public override Dialog onCreateDialog(Bundle savedInstanceState)
        {
            Bundle args = Arguments;
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final String title = args.getString(KEY_TITLE);
            string title = args.getString(KEY_TITLE);

//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final String[] items = args.getStringArray(KEY_ITEMS);
            string[] items = args.getStringArray(KEY_ITEMS);

            AlertDialog.Builder builder = new AlertDialog.Builder(Activity);
            builder.setTitle(title).setItems(items, new OnClickListenerAnonymousInnerClassHelper(this, title, items));
            return(builder.create());
        }