private async void StepBttn_Click(object sender, EventArgs _) { if (FilenameTB.Text.Length == 0) { MessageBox.Show("File Not Provided!"); return; } if (commands.Count == 0) { return; } OutputTB.AppendText(await exec.CommandExec(commands.First.Value)); commands.RemoveFirst(); if (commands.Count == 0) { FilenameTB.Clear(); } }
private async void SeqBttn_Click(object sender, EventArgs _) { if (FilenameTB.Text.Length == 0) { MessageBox.Show("File Not Provided!"); return; } if (commands.Count == 0) { return; } foreach (var c in commands) { OutputTB.AppendText(await exec.CommandExec(c)); } commands.Clear(); FilenameTB.Clear(); }