Example #1
0
 void StyleViews()
 {
     CoinAddToJarButton.BackgroundColor = UIColor.Cyan;
     CoinResetJarButton.BackgroundColor = UIColor.Red;
     CoinAddToJarButton.SetTitle(ViewConstants.AddCoinString, UIControlState.Normal);
     CoinResetJarButton.SetTitle(ViewConstants.ResetJarString, UIControlState.Normal);
     CoinResetJarButton.SetTitleColor(UIColor.White, UIControlState.Normal);
 }
        void ReleaseDesignerOutlets()
        {
            if (CoinAddToJarButton != null)
            {
                CoinAddToJarButton.Dispose();
                CoinAddToJarButton = null;
            }

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

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

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

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

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

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