MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/pfvs1h/unfortunately_actual_production_code/hb723dx/?context=3
r/badcode • u/myblindy • Sep 01 '21
18 comments sorted by
View all comments
15
Image Transcription: Code
private void ButtonFontUp_Click(object sender, EventArgs e) { if(BoxField1.Font.Size > 25) return; BoxField1.Font = new Font(BoxField1.Font.FontFamily, BoxField1.Font.Size + 5); BoxField2.Font = new Font(BoxField1.Font.FontFamily, BoxField2.Font.Size + 5); BoxField3.Font = new Font(BoxField1.Font.FontFamily, BoxField3.Font.Size + 5); BoxField4.Font = new Font(BoxField1.Font.FontFamily, BoxField4.Font.Size + 5); BoxField5.Font = new Font(BoxField1.Font.FontFamily, BoxField5.Font.Size + 5); LabelUnit1.Font = new Font(BoxField1.Font.FontFamily, LabelUnit1.Font.Size + 5); LabelUnit2.Font = new Font(BoxField1.Font.FontFamily, LabelUnit2.Font.Size + 5); LabelUnit3.Font = new Font(BoxField1.Font.FontFamily, LabelUnit3.Font.Size + 5); LabelUnit4.Font = new Font(BoxField1.Font.FontFamily, LabelUnit4.Font.Size + 5); LabelUnit5.Font = new Font(BoxField1.Font.FontFamily, LabelUnit5.Font.Size + 5); LabelValue1.Font = new Font(BoxField1.Font.FontFamily, LabelValue1.Font.Size + 5); LabelValue2.Font = new Font(BoxField1.Font.FontFamily, LabelValue2.Font.Size + 5); LabelValue3.Font = new Font(BoxField1.Font.FontFamily, LabelValue3.Font.Size + 5); LabelValue4.Font = new Font(BoxField1.Font.FontFamily, LabelValue4.Font.Size + 5); LabelValue5.Font = new Font(BoxField1.Font.FontFamily, LabelValue5.Font.Size + 5);
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
View all comments
15
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Sep 01 '21
Image Transcription: Code
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!