private void frmSeleniumSchemacs_Load(object sender, EventArgs e) { try { //StaticValue.LoadSeleniumSchema(dgvSelenium); StaticValue.GetAllSeleniumSchema(treeSchemas, ""); } catch (Exception er) { MessageBox.Show(er.Message, "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
private void 设为执行方案ToolStripMenuItem_Click(object sender, EventArgs e) { try { var nodeSelect = treeSchemas.SelectedNode; if (nodeSelect != null) if (nodeSelect.Name.IndexOf("SCHEMA_") > -1) { var seleniumSchemaEntity = (SeleniumSchemaEntity) nodeSelect.Tag; StaticValue.SetExecuteSeleniumSchema(seleniumSchemaEntity); StaticValue.GetAllSeleniumSchema(treeSchemas, seleniumSchemaEntity.Id); } } catch (Exception er) { MessageBox.Show(er.Message, "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
public void SeleniumSchemaCallBack(SeleniumSchemaEntity seleniumSchemaEntity) { StaticValue.GetAllSeleniumSchema(treeSchemas, seleniumSchemaEntity.Id); LoadSchema(seleniumSchemaEntity); }