コード例 #1
0
 void ReleaseDesignerOutlets()
 {
     if (NavigateButton != null)
     {
         NavigateButton.Dispose();
         NavigateButton = null;
     }
     if (WelcomeText != null)
     {
         WelcomeText.Dispose();
         WelcomeText = null;
     }
 }
コード例 #2
0
        void ReleaseDesignerOutlets()
        {
            if (ChooseFancyButton != null)
            {
                ChooseFancyButton.Dispose();
                ChooseFancyButton = null;
            }

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

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

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

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

            if (ShowFancyButton != null)
            {
                ShowFancyButton.Dispose();
                ShowFancyButton = null;
            }
        }
コード例 #3
0
 void ReleaseDesignerOutlets()
 {
     if (ClockText != null)
     {
         ClockText.Dispose();
         ClockText = null;
     }
     if (DialogNavText != null)
     {
         DialogNavText.Dispose();
         DialogNavText = null;
     }
     if (IncrementButton != null)
     {
         IncrementButton.Dispose();
         IncrementButton = null;
     }
     if (NavigateButton != null)
     {
         NavigateButton.Dispose();
         NavigateButton = null;
     }
     if (SendMessageButton != null)
     {
         SendMessageButton.Dispose();
         SendMessageButton = null;
     }
     if (ShowDialogButton != null)
     {
         ShowDialogButton.Dispose();
         ShowDialogButton = null;
     }
     if (WelcomeText != null)
     {
         WelcomeText.Dispose();
         WelcomeText = null;
     }
 }