public void ShowCommand(int id, TuringMachine.Command command) { lvCommands.Items.Add(new ListViewItem( new string[] { "", id.ToString(), command.ToString() } )); }
private void tmMachine_StepPerformed(object sender, TuringMachine.StepPerformedEventArgs e) { lblStepsPerformedValue.Text = (int.Parse(lblStepsPerformedValue.Text) + 1).ToString(); }
private void tmMachine_SelectedCellIdChanged(object sender, TuringMachine.SelectedCellIdChangedEventArgs e) { if(e.SelectedCellId < thTape.Cells.Count) { thTape.SelectedCellId = e.SelectedCellId; } }
private void tmMachine_StateChanged(object sender, TuringMachine.StateChangedEventArgs e) { lblStateValue.Text = e.State.ToString(); }
private void tmMachine_ProgramStarted(object sender, TuringMachine.ProgramStartedEventArgs e) { lblMaxStepsValue.Text = e.MaxSteps.ToString(); }