Ejemplo n.º 1
0
        public virtual void onClick(View v)
        {
            switch (v.Id)
            {
            case R.id.buttonBrowse:
                FileListDialogFragment.showDialog(FragmentManager);
                break;

            case R.id.buttonGo:
                try
                {
                    posPrinter.updateFirmware(fileNameEditText.Text.ToString());
                }
                catch (JposException e)
                {
                    Console.WriteLine(e.ToString());
                    Console.Write(e.StackTrace);
                    MessageDialogFragment.showDialog(FragmentManager, "Excepction", e.Message);
                }
                break;
            }
        }
        internal static void showDialog(FragmentManager manager)
        {
            FileListDialogFragment fileListDialogFragment = new FileListDialogFragment();

            fileListDialogFragment.show(manager, TAG);
        }
 public FileAdapter(FileListDialogFragment outerInstance, Context context)
 {
     this.outerInstance = outerInstance;
     layoutInflater     = LayoutInflater.from(context);
 }