예제 #1
0
        void ReleaseDesignerOutlets()
        {
            if (Image != null)
            {
                Image.Dispose();
                Image = null;
            }

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

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

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

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

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

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

            if (ScrollView != null)
            {
                ScrollView.Dispose();
                ScrollView = null;
            }
        }
예제 #2
0
 public void Dispose()
 {
     HeaderText?.Dispose();
     FooterText?.Dispose();
     MenuItems?.Dispose();
 }