Mistři v programování na #hovnokod

C# #2665

1. Kdyz nechcete button, tak ho nejdriv vytvorte 2. if if if if if ...

UIButton Ok = new UIButton (new RectangleF (173, 134 / (1.5f), 217 / (2f), 118 / 2));
UILabel okLabel = new UILabel (new RectangleF (184, 139 / (1.5f), 217 / (2f), 60 / 2));

if (!okbool) Ok.Dispose();
if (!okbool) okLabel.Dispose();

if (okbool)Ok.SetBackgroundImage(UIImage.FromFile("Requester_R_act.png"),UIControlState.Normal);
if (okbool)Ok.SetBackgroundImage(UIImage.FromFile("Requester_R_def.png"),UIControlState.Highlighted);
if (okbool)Ok.TitleLabel.Text = Texts.Ok;

if (okbool)okLabel.BackgroundColor = UIColor.Clear;
if (okbool)okLabel.TextColor = UIColor.White;
if (okbool)okLabel.Font = UIFont.BoldSystemFontOfSize(24f);
if (okbool)okLabel.Text = Texts.Ok;
if (okbool)okLabel.TextAlignment = UITextAlignment.Center;

Anonymous,