public double Izracun(Form1.RacOperacija del) { this.x = Double.TryParse(OperandA, out double a); this.y = Double.TryParse(OperandB, out double b); if (x == false || y == false) { NijeBroj(); return(0); } return(del(a, b)); }
public void Izracun(Form1.RacOperacija ro) { double Prvi; double Drugi; if (double.TryParse(OperandA, out Prvi) && double.TryParse(OperandB, out Drugi)) { ro(Prvi, Drugi); } else { if (NijeBroj != null) { NijeBroj(this, new EventArgs()); } } }