コード例 #1
0
        private void SetupInfo()
        {
            SettingsInfoText.Enabled               = false;
            SettingsInfoText.Layer.CornerRadius    = SettingsInfoText.Frame.Size.Height / 2;
            SettingsInfoText.Layer.BackgroundColor = UIColor.White.CGColor;
            SettingsInfoText.Layer.BorderWidth     = 2;
            SettingsInfoText.SetTitleColor(UIColor.White, UIControlState.Normal);
            SettingsInfoText.BackgroundColor   = UIColor.White;
            SettingsInfoText.Layer.BorderColor = UIColor.White.CGColor;

            SettingsInfoText.SetTitle(String.Empty, UIControlState.Normal);
        }
コード例 #2
0
        private void ShowInfo(string info)
        {
            SettingsInfoText.Enabled = false;
            SettingsInfoText.SetTitle(info, UIControlState.Normal);
            SettingsInfoText.Enabled = true;
            UIView.Animate(3.0f, 1, UIViewAnimationOptions.CurveLinear,
                           () => {
                this.SettingsInfoText.SetTitleColor(UIColor.Black, UIControlState.Normal);
                this.SettingsInfoText.BackgroundColor   = UIColor.Orange;
                this.SettingsInfoText.Layer.BorderColor = UIColor.Red.CGColor;
            },
                           () => {
                SettingsInfoText.Enabled = false;
                this.SettingsInfoText.SetTitleColor(UIColor.White, UIControlState.Normal);
                this.SettingsInfoText.BackgroundColor   = UIColor.White;
                this.SettingsInfoText.Layer.BorderColor = UIColor.White.CGColor;

                SettingsInfoText.SetTitle(String.Empty, UIControlState.Normal);
                SettingsInfoText.Enabled = true;
            }
                           );
        }
コード例 #3
0
 void ReleaseDesignerOutlets()
 {
     if (AboutButton != null)
     {
         AboutButton.Dispose();
         AboutButton = null;
     }
     if (IPTextField != null)
     {
         IPTextField.Dispose();
         IPTextField = null;
     }
     if (PortTextField != null)
     {
         PortTextField.Dispose();
         PortTextField = null;
     }
     if (RegisterButton != null)
     {
         RegisterButton.Dispose();
         RegisterButton = null;
     }
     if (ResetButton != null)
     {
         ResetButton.Dispose();
         ResetButton = null;
     }
     if (SettingsInfoText != null)
     {
         SettingsInfoText.Dispose();
         SettingsInfoText = null;
     }
     if (TimeoutSlider != null)
     {
         TimeoutSlider.Dispose();
         TimeoutSlider = null;
     }
 }