示例#1
0
        public override void OnActivityCreated(Bundle savedInstanceState)
        {
            base.OnActivityCreated(savedInstanceState);

            ShortCutFunctions sc = new ShortCutFunctions();


            sc.defaultVals(ans11, ans12, ans13, ans1, O_IFR_Day_XC_1Departure.questionArray[O_IFR_Day_XC_1Departure.questionNum]);
            sc.defaultVals(ans21, ans22, ans23, ans2, O_IFR_Day_XC_1Departure.questionArray[O_IFR_Day_XC_1Departure.questionNum + 1]);


            ans11.Touch += (s, e) =>
            {
                risk4 = 0;
                mListener.onFragmentInteraction(risk4, risk5);
                sc.button1Pressed(ans11, ans12, ans13, ans1);
            };
            ans12.Touch += (s, e) =>
            {
                risk4 = 1;
                mListener.onFragmentInteraction(risk4, risk5);
                sc.button2Pressed(ans11, ans12, ans13, ans1);
            };
            ans13.Touch += (s, e) =>
            {
                risk4 = 3;
                mListener.onFragmentInteraction(risk4, risk5);
                sc.button3Pressed(ans11, ans12, ans13, ans1);
            };

            ans21.Touch += (s, e) =>
            {
                risk5 = 0;
                mListener.onFragmentInteraction(risk4, risk5);
                sc.button1Pressed(ans21, ans22, ans23, ans2);
            };
            ans22.Touch += (s, e) =>
            {
                risk5 = 1;
                mListener.onFragmentInteraction(risk4, risk5);
                sc.button2Pressed(ans21, ans22, ans23, ans2);
            };
            ans23.Touch += (s, e) =>
            {
                risk5 = 3;
                mListener.onFragmentInteraction(risk4, risk5);
                sc.button3Pressed(ans21, ans22, ans23, ans2);
            };
        }
示例#2
0
        public override void OnActivityCreated(Bundle savedInstanceState)
        {
            base.OnActivityCreated(savedInstanceState);

            ShortCutFunctions sc = new ShortCutFunctions();

            sc.defaultVals(ans11, ans12, ans13, ans1, P_IFR_Dual_Local_2Home.questionArray[P_IFR_Dual_Local_2Home.questionNum]); //CHANGE
            sc.defaultVals(ans21, ans22, ans23, ans2, P_IFR_Dual_Local_2Home.questionArray[P_IFR_Dual_Local_2Home.questionNum + 1]);

            ans11.Touch += (s, e) =>
            {
                risk1 = 0;
                mListener.onFragmentInteraction(risk1, risk2);
                sc.button1Pressed(ans11, ans12, ans13, ans1);
            };
            ans12.Touch += (s, e) =>
            {
                risk1 = 1;
                mListener.onFragmentInteraction(risk1, risk2);
                sc.button2Pressed(ans11, ans12, ans13, ans1);
            };
            ans13.Touch += (s, e) =>
            {
                risk1 = 3;
                mListener.onFragmentInteraction(risk1, risk2);
                sc.button3Pressed(ans11, ans12, ans13, ans1);
            };

            ans21.Touch += (s, e) =>
            {
                risk2 = 0;
                mListener.onFragmentInteraction(risk1, risk2);
                sc.button1Pressed(ans21, ans22, ans23, ans2);
            };
            ans22.Touch += (s, e) =>
            {
                risk2 = 1;
                mListener.onFragmentInteraction(risk1, risk2);
                sc.button2Pressed(ans21, ans22, ans23, ans2);
            };
            ans23.Touch += (s, e) =>
            {
                risk2 = 3;
                mListener.onFragmentInteraction(risk1, risk2);
                sc.button3Pressed(ans21, ans22, ans23, ans2);
            };
        }
示例#3
0
        public override void OnActivityCreated(Bundle savedInstanceState)
        {
            base.OnActivityCreated(savedInstanceState);

            ShortCutFunctions sc = new ShortCutFunctions();


            sc.defaultVals(ans11, ans12, ans13, ans1, N_IFR_Day_Local_Alternate.questionArray[N_IFR_Day_Local_Alternate.questionNum]);
            sc.defaultVals(ans21, ans22, ans23, ans2, N_IFR_Day_Local_Alternate.questionArray[N_IFR_Day_Local_Alternate.questionNum + 1]);
            sc.defaultVals(ans31, ans32, ans33, ans3, N_IFR_Day_Local_Alternate.questionArray[N_IFR_Day_Local_Alternate.questionNum + 2]);

            ans11.Touch += (s, e) =>
            {
                risk1 = 0;
                mListener.onFragmentInteraction(risk1, risk2, risk3);
                sc.button1Pressed(ans11, ans12, ans13, ans1);
            };
            ans12.Touch += (s, e) =>
            {
                risk1 = 1;
                mListener.onFragmentInteraction(risk1, risk2, risk3);
                sc.button2Pressed(ans11, ans12, ans13, ans1);
            };
            ans13.Touch += (s, e) =>
            {
                risk1 = 3;
                mListener.onFragmentInteraction(risk1, risk2, risk3);
                sc.button3Pressed(ans11, ans12, ans13, ans1);
            };

            ans21.Touch += (s, e) =>
            {
                risk2 = 0;
                mListener.onFragmentInteraction(risk1, risk2, risk3);
                sc.button1Pressed(ans21, ans22, ans23, ans2);
            };
            ans22.Touch += (s, e) =>
            {
                risk2 = 1;
                mListener.onFragmentInteraction(risk1, risk2, risk3);
                sc.button2Pressed(ans21, ans22, ans23, ans2);
            };
            ans23.Touch += (s, e) =>
            {
                risk2 = 3;
                mListener.onFragmentInteraction(risk1, risk2, risk3);
                sc.button3Pressed(ans21, ans22, ans23, ans2);
            };

            ans31.Touch += (s, e) =>
            {
                risk3 = 0;
                mListener.onFragmentInteraction(risk1, risk2, risk3);
                sc.button1Pressed(ans31, ans32, ans33, ans3);
            };
            ans32.Touch += (s, e) =>
            {
                risk3 = 1;
                mListener.onFragmentInteraction(risk1, risk2, risk3);
                sc.button2Pressed(ans31, ans32, ans33, ans3);
            };
            ans33.Touch += (s, e) =>
            {
                risk3 = 3;
                mListener.onFragmentInteraction(risk1, risk2, risk3);
                sc.button3Pressed(ans31, ans32, ans33, ans3);
            };
        }