private void SetOutput(OutputPattern p, string value) { //Standard output WriteToHandlers(p.Name, value.Replace("\r", "")); //ingameOverlay part if (p.ShowInOsu) { var configName = "conf-" + p.Name; var valueName = "value-" + p.Name; var config = $"{p.XPosition} {p.YPosition} {p.Color.R} {p.Color.G} {p.Color.B} {p.FontName.Replace(' ', '/')} {p.FontSize}"; WriteToHandlers(configName, config); WriteToHandlers(valueName, value); } }
private void button1_Click(object sender, EventArgs e) { float[] input = new float[4]; input[0] = -100.0F; input[1] = -40.0F; input[2] = -90.0F; input[3] = -66.0F; InputPattern i = new InputPattern(input); LVQ.NET.LVQExe exe = new LVQExe(); exe.loadLVQNet(@"D:\netConfig\LocationAwareSchedular\309\LVQ_4_8_3_LocationAwareSchedular.LVQ"); OutputPattern o = exe.feedInput(i); MessageBox.Show((o.getOutputPattern()[0] + " " + o.getOutputPattern()[1] + " " + o.getOutputPattern()[2])); }