Ejemplo n.º 1
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var view = inflater.Inflate(Resource.Layout.sheetAddMenu, container, false);

            var scanQrItem   = view.FindViewById <LinearLayout>(Resource.Id.buttonScanQRCode);
            var enterKeyItem = view.FindViewById <LinearLayout>(Resource.Id.buttonEnterKey);
            var restoreItem  = view.FindViewById <LinearLayout>(Resource.Id.buttonRestore);

            scanQrItem.Click += (sender, e) => {
                ClickQrCode?.Invoke(sender, e);
                Dismiss();
            };

            enterKeyItem.Click += (sender, e) => {
                ClickEnterKey?.Invoke(sender, e);
                Dismiss();
            };

            restoreItem.Click += (sender, e) => {
                ClickRestore?.Invoke(sender, e);
                Dismiss();
            };

            return(view);
        }
Ejemplo n.º 2
0
 private void menuItemRestore_Click(object sender, EventArgs e)
 {
     ClickRestore?.Invoke(this, e);
 }