Ejemplo n.º 1
0
        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
                }
            }
        }
Ejemplo n.º 2
0
 public string ExecuteAction(string actionName, string actionParameters)
 {
     return(IsolatedFunc((x, y) => m_delegate.ExecuteAction(x, y), actionName, actionParameters));
 }