void ReleaseDesignerOutlets()
        {
            if (Button1 != null)
            {
                Button1.Dispose();
                Button1 = null;
            }

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

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

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

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

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

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

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

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

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

            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }
        }
示例#2
0
        void ReleaseDesignerOutlets()
        {
            if (Button0 != null)
            {
                Button0.Dispose();
                Button0 = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (TranslateButton != null)
            {
                TranslateButton.Dispose();
                TranslateButton = null;
            }
        }
 void ReleaseDesignerOutlets()
 {
     if (Button0 != null)
     {
         Button0.Dispose();
         Button0 = null;
     }
     if (Button1 != null)
     {
         Button1.Dispose();
         Button1 = null;
     }
     if (Button10 != null)
     {
         Button10.Dispose();
         Button10 = null;
     }
     if (Button11 != null)
     {
         Button11.Dispose();
         Button11 = null;
     }
     if (Button2 != null)
     {
         Button2.Dispose();
         Button2 = null;
     }
     if (Button3 != null)
     {
         Button3.Dispose();
         Button3 = null;
     }
     if (Button4 != null)
     {
         Button4.Dispose();
         Button4 = null;
     }
     if (Button5 != null)
     {
         Button5.Dispose();
         Button5 = null;
     }
     if (Button6 != null)
     {
         Button6.Dispose();
         Button6 = null;
     }
     if (Button7 != null)
     {
         Button7.Dispose();
         Button7 = null;
     }
     if (Button8 != null)
     {
         Button8.Dispose();
         Button8 = null;
     }
     if (Button9 != null)
     {
         Button9.Dispose();
         Button9 = null;
     }
     if (ResultLabel != null)
     {
         ResultLabel.Dispose();
         ResultLabel = null;
     }
 }