private void Test() { for (int i = 0; i < 5; i++) { SetupLotResult result = c_ILibraryClient.SetupLotNoCheckLicenser(textBoxLotNo.Text, textBoxMCNo.Text, textBoxOPNo.Text, textBoxProcess.Text, ""); StartLotResult result2 = c_ILibraryClient.StartLot(textBoxLotNo.Text, textBoxMCNo.Text, textBoxOPNo.Text, textBoxRecipe.Text); } }
private void BackgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { for (int i = 0; i < 5; i++) { SetupLotResult result = c_ILibraryClient.SetupLotNoCheckLicenser(textBoxLotNo.Text, textBoxMCNo.Text, textBoxOPNo.Text, textBoxProcess.Text, ""); StartLotResult result2 = c_ILibraryClient.StartLot(textBoxLotNo.Text, textBoxMCNo.Text, textBoxOPNo.Text, textBoxRecipe.Text); } }
private void buttonSetup_Click(object sender, EventArgs e) { //SetupLotResult result = c_ILibraryClient.SetupLot(textBoxLotNo.Text, textBoxMCNo.Text, // textBoxOPNo.Text, textBoxProcess.Text, ""); SetupLotResult result = c_ILibraryClient.SetupLot(textBoxLotNo.Text, textBoxMCNo.Text, textBoxOPNo.Text, textBoxProcess.Text, ""); if (result.IsPass == SetupLotResult.Status.NotPass) { MessageBoxDialog.ShowMessageDialog(result.FunctionName, result.Cause, result.Type.ToString(), result.ErrorNo); return; } else if (result.IsPass == SetupLotResult.Status.Warning) { MessageBoxDialog.ShowMessageDialog(result.FunctionName, result.Cause, result.Type.ToString(), result.ErrorNo); } textBoxRecipe.Text = result.Recipe; }