void tsi_Click(object sender, EventArgs e) { ToolStripItem tsi = sender as ToolStripItem; if (tsi != null) { var frm = new frmRunAction(); string actionName = (string)tsi.Tag; frm.SetActionName(actionName); if (frm.ShowDialog(this) == DialogResult.OK) { string paramValue = frm.GetParameterValue(); string actionResult = videoObject.ExecuteAction(actionName, paramValue); // TODO: Output the result in the log pane } } }
public string ExecuteAction(string actionName, string actionParameters) { return(IsolatedFunc((x, y) => m_delegate.ExecuteAction(x, y), actionName, actionParameters)); }