private void button2_Click(object sender, EventArgs e) { d1.chis = (int)numericUpDown1.Value; d1.znam = (int)numericUpDown4.Value; d2.chis = (int)numericUpDown2.Value; d2.znam = (int)numericUpDown5.Value; d3.chis = (int)numericUpDown3.Value; d3.znam = (int)numericUpDown6.Value; R = (d1 + d2) * (d1 - d3); textBox7.Text = "R ravno " + "\r\n" + Drob.Vivod(R) + "\r\n" + "\r\n" + "1/R ravno " + "\r\n" + Drob.Vivod(1 / R); }
public static string Vivod(Drob Viv) { return(Viv.chis + "\r\n" + "---" + "\r\n" + Viv.znam); }