private void 添加方案ToolStripMenuItem_Click(object sender, EventArgs e) { try { var addSchema = new FrmAddChildSchema(); addSchema.SchemaId = ""; addSchema.SchemaName = ""; addSchema.ISeleniumSchemaInterface = this; addSchema.ShowDialog(); } 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; var addSchema = new FrmAddChildSchema(); addSchema.SchemaId = seleniumSchemaEntity.Id; addSchema.SchemaName = seleniumSchemaEntity.Name; addSchema.ISeleniumSchemaInterface = this; addSchema.ShowDialog(); } } catch (Exception er) { MessageBox.Show(er.Message, "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }