private void button1_Click(object sender, EventArgs e) { float[] inputs = ParseFloats(this.txtIntput.Text); if (this.calculator.MaxItemCount < inputs.Length) { this.calculator = new TransformFeedbackCalculator(inputs.Length); } this.calculator.UpdateInput(inputs); this.calculator.Calculate(); float[] outputs = this.calculator.GetOutput(inputs.Length); string str = Floats2String(outputs); this.txtOutput.Text = str; }
private void Form1_Load(object sender, EventArgs e) { this.calculator = new TransformFeedbackCalculator(10); }