Exemplo n.º 1
0
        void ReleaseDesignerOutlets()
        {
            if (Btn_A != null)
            {
                Btn_A.Dispose();
                Btn_A = null;
            }

            if (Btn_B != null)
            {
                Btn_B.Dispose();
                Btn_B = null;
            }

            if (Btn_Bass != null)
            {
                Btn_Bass.Dispose();
                Btn_Bass = null;
            }

            if (Btn_C != null)
            {
                Btn_C.Dispose();
                Btn_C = null;
            }

            if (Btn_Choir != null)
            {
                Btn_Choir.Dispose();
                Btn_Choir = null;
            }

            if (Btn_D != null)
            {
                Btn_D.Dispose();
                Btn_D = null;
            }

            if (Btn_D0 != null)
            {
                Btn_D0.Dispose();
                Btn_D0 = null;
            }

            if (Btn_E != null)
            {
                Btn_E.Dispose();
                Btn_E = null;
            }

            if (Btn_Eighth != null)
            {
                Btn_Eighth.Dispose();
                Btn_Eighth = null;
            }

            if (Btn_EP1 != null)
            {
                Btn_EP1.Dispose();
                Btn_EP1 = null;
            }

            if (Btn_F != null)
            {
                Btn_F.Dispose();
                Btn_F = null;
            }

            if (Btn_FP1 != null)
            {
                Btn_FP1.Dispose();
                Btn_FP1 = null;
            }

            if (Btn_G != null)
            {
                Btn_G.Dispose();
                Btn_G = null;
            }

            if (Btn_G1 != null)
            {
                Btn_G1.Dispose();
                Btn_G1 = null;
            }

            if (Btn_Guitar != null)
            {
                Btn_Guitar.Dispose();
                Btn_Guitar = null;
            }

            if (Btn_Half != null)
            {
                Btn_Half.Dispose();
                Btn_Half = null;
            }

            if (btn_Load != null)
            {
                btn_Load.Dispose();
                btn_Load = null;
            }

            if (Btn_Math != null)
            {
                Btn_Math.Dispose();
                Btn_Math = null;
            }

            if (Btn_NoteWhole != null)
            {
                Btn_NoteWhole.Dispose();
                Btn_NoteWhole = null;
            }

            if (Btn_Piano != null)
            {
                Btn_Piano.Dispose();
                Btn_Piano = null;
            }

            if (Btn_Quarter != null)
            {
                Btn_Quarter.Dispose();
                Btn_Quarter = null;
            }

            if (Btn_Remove != null)
            {
                Btn_Remove.Dispose();
                Btn_Remove = null;
            }

            if (btn_Save != null)
            {
                btn_Save.Dispose();
                btn_Save = null;
            }

            if (Btn_Sixteen != null)
            {
                Btn_Sixteen.Dispose();
                Btn_Sixteen = null;
            }

            if (lbl_tempo != null)
            {
                lbl_tempo.Dispose();
                lbl_tempo = null;
            }

            if (PlayButton != null)
            {
                PlayButton.Dispose();
                PlayButton = null;
            }

            if (stepper_tempo != null)
            {
                stepper_tempo.Dispose();
                stepper_tempo = null;
            }

            if (txt_Load != null)
            {
                txt_Load.Dispose();
                txt_Load = null;
            }

            if (txt_name != null)
            {
                txt_name.Dispose();
                txt_name = null;
            }

            if (txtTempo != null)
            {
                txtTempo.Dispose();
                txtTempo = null;
            }
        }
Exemplo n.º 2
0
        void ReleaseDesignerOutlets()
        {
            if (Btn_A != null)
            {
                Btn_A.Dispose();
                Btn_A = null;
            }

            if (Btn_B != null)
            {
                Btn_B.Dispose();
                Btn_B = null;
            }

            if (Btn_C != null)
            {
                Btn_C.Dispose();
                Btn_C = null;
            }

            if (Btn_D != null)
            {
                Btn_D.Dispose();
                Btn_D = null;
            }

            if (Btn_D0 != null)
            {
                Btn_D0.Dispose();
                Btn_D0 = null;
            }

            if (Btn_E != null)
            {
                Btn_E.Dispose();
                Btn_E = null;
            }

            if (Btn_EP1 != null)
            {
                Btn_EP1.Dispose();
                Btn_EP1 = null;
            }

            if (Btn_F != null)
            {
                Btn_F.Dispose();
                Btn_F = null;
            }

            if (Btn_FP1 != null)
            {
                Btn_FP1.Dispose();
                Btn_FP1 = null;
            }

            if (Btn_G != null)
            {
                Btn_G.Dispose();
                Btn_G = null;
            }

            if (Btn_G1 != null)
            {
                Btn_G1.Dispose();
                Btn_G1 = null;
            }

            if (btn_Hint != null)
            {
                btn_Hint.Dispose();
                btn_Hint = null;
            }

            if (btn_New != null)
            {
                btn_New.Dispose();
                btn_New = null;
            }

            if (btn_Submit != null)
            {
                btn_Submit.Dispose();
                btn_Submit = null;
            }

            if (btn_vwOK != null)
            {
                btn_vwOK.Dispose();
                btn_vwOK = null;
            }

            if (lbl_Hint != null)
            {
                lbl_Hint.Dispose();
                lbl_Hint = null;
            }

            if (lbl_vwMsg != null)
            {
                lbl_vwMsg.Dispose();
                lbl_vwMsg = null;
            }

            if (lblMathQuestion != null)
            {
                lblMathQuestion.Dispose();
                lblMathQuestion = null;
            }

            if (txt_Answer != null)
            {
                txt_Answer.Dispose();
                txt_Answer = null;
            }

            if (vwFeedback != null)
            {
                vwFeedback.Dispose();
                vwFeedback = null;
            }
        }