public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements) { FormProjectControl formProjectControl = new FormProjectControl(); formProjectControl.ShowDialog(); return(Result.Succeeded); }
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { FormProjectControl formProjectControl = new FormProjectControl(); Common.unicodeFlag = false; formProjectControl.button_deal.Enabled = Common.unicodeFlag; if (dataGridView1.Columns[5].Name == "unicode") { int index = e.RowIndex; Common.unicode = dataGridView1.Rows[index].Cells[5].Value.ToString(); if (Common.unicode != null && Common.unicode != "") { Common.unicodeFlag = true; Common.button.Enabled = true; formProjectControl.button_deal.Enabled = Common.unicodeFlag; } } }