Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
 public void SeleniumSchemaCallBack(SeleniumSchemaEntity seleniumSchemaEntity)
 {
     StaticValue.GetAllSeleniumSchema(treeSchemas, seleniumSchemaEntity.Id);
     LoadSchema(seleniumSchemaEntity);
 }