private void ProgramBox_TextChanged(object sender, TextChangedEventArgs e) { string[] ProgramInput = ProgramBox.Text.Split(new[] { '\r', '\n' }); try { pro = new FullProgram(ProgramInput); Success.Text = "No errors"; } catch { Success.Text = "So many errors"; } }
public MainPage() { this.InitializeComponent(); pro = new FullProgram(new string[] { }); }