public List <Command> UpdateProgrammcodeView() { string[] elements = ProgrammText.Split('\n'); int i = 0; List <Command> commands = new List <Command>(); foreach (string element in elements) { Command com = new Command(); com.Line = ++i; com.CommandString = element; commands.Add(com); System.Diagnostics.Trace.WriteLine(i); } return(commands); }
public void startCompiling() { if (ProgrammText.Equals("")) { throw new Wpf.Exception.Exception(ExceptionId.NoProgrammCode, "Programm Code was: \"\""); } try { BinaryCode = Compiler.Compile(ProgrammText); } catch (Core.Compiler.CompilerException e) { Wpf.Exception.ExceptionHandling.catchException(e); } }