상속: MonoBehaviour
예제 #1
0
        private void ShapeBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (ShapeBox.SelectedIndex)
            {
            case 0:     //rectangle
                ClearContext();
                RedTextBox.Select();
                WidthLabel.Show();
                HeightLabel.Show();
                WidthTextBox_Rectangle.Show();
                HeightTextBox_Rectangle.Show();
                break;

            case 1:     //square
                ClearContext();
                RedTextBox.Select();
                WidthLabel.Show();
                WidthTextBox_Square.Show();
                break;

            case 2:     //circle
                ClearContext();
                RedTextBox.Select();
                RadiusLabel.Show();
                RadiusTextBox_Circle.Show();
                break;
            }
        }
 void ReleaseDesignerOutlets()
 {
     if (DescriptionLabel != null)
     {
         DescriptionLabel.Dispose();
         DescriptionLabel = null;
     }
     if (HeightLabel != null)
     {
         HeightLabel.Dispose();
         HeightLabel = null;
     }
     if (NameLabel != null)
     {
         NameLabel.Dispose();
         NameLabel = null;
     }
     if (PokemonImage != null)
     {
         PokemonImage.Dispose();
         PokemonImage = null;
     }
     if (WeightLabel != null)
     {
         WeightLabel.Dispose();
         WeightLabel = null;
     }
 }
        void ReleaseDesignerOutlets()
        {
            if (WidthLabel != null)
            {
                WidthLabel.Dispose();
                WidthLabel = null;
            }

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

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

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

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

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

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