Пример #1
0
 protected Pkcs11Exception(
     SerializationInfo info,
     StreamingContext context) : base(info, context)
 {
     if (info != null)
     {
         Pkcs11Rv = (Rv)info.GetUInt32("Pkcs11Rv");
     }
 }
Пример #2
0
        public void predict_internal_measurement(Vector xv, MatrixFixed Pxx)
        {
            internal_measurement_model.func_hv_and_dhv_by_dxv(xv);

            hv.Update(internal_measurement_model.get_hvRES());
            dhv_by_dxv.Update(internal_measurement_model.get_dhv_by_dxvRES());

            internal_measurement_model.func_Rv(hv);
            Rv.Update(internal_measurement_model.get_RvRES());

            internal_measurement_model.func_Sv(Pxx, dhv_by_dxv, Rv);
            Sv.Update(internal_measurement_model.get_SvRES());

            //if (DEBUGDUMP) cout << "Internal measurement prediction: hv " << endl
            //<< hv << endl;
        }
            public override bool OnSingleTapUp(MotionEvent e)
            {
                var childView = Rv.FindChildViewUnder(e.GetX(), e.GetY());

                if (childView != null)
                {
                    var position = Rv.GetChildLayoutPosition(childView);

                    if (Listener != null)
                    {
                        Listener.OnItemSelected(position);
                    }

                    return(true);
                }
                return(base.OnSingleTapUp(e));
            }
Пример #4
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.Main);

            EnableFullScreen();

            Rv         = FindViewById <RecyclerView>(Resource.Id.main_rv);
            ScrollView = FindViewById <ScrollView>(Resource.Id.main_scrollview);
            Ll         = FindViewById <LinearLayout>(Resource.Id.main_ll);

            RecyclerAdapter adapter = new RecyclerAdapter(this, BlockView.Categories.Instructions);

            Rv.SetLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.Horizontal, false));
            Rv.SetAdapter(adapter);

            // TODO selected TAB

            Rv.SetOnDragListener(this);
            Ll.SetOnDragListener(this);

            for (int i = 0; i < 10; i++)
            {
                BlockView textBv = new TextBlockView(this, "BlockView : " + i);
                Ll.AddView(textBv);

                textBv.SetOnTouchListener(this);
            }

            Handler = new Handler();

            void SmoothScrollCheck()
            {
                //  Log("SmoothScrollCheck");
                if (SmoothScrolling)
                {
                    ScrollView.ScrollBy(0, IsScrollingUp ? 15 : -15);
                }

                Handler.PostDelayed(SmoothScrollCheck, 1000 / 60);
            }

            new Runnable(() => { Handler.PostDelayed(SmoothScrollCheck, 1000 / 60); }).Run();
        }
Пример #5
0
 public Pkcs11Exception(string message, Rv rv, System.Exception inner)
     : base(message, inner)
 {
     Pkcs11Rv = rv;
 }
Пример #6
0
 public Pkcs11Exception(string message, Rv rv)
     : base(message)
 {
     Pkcs11Rv = rv;
 }