private void RaisePrintSummaryCommand() { ModelessCommandData data = new ModelessCommandData(); data.CommandType = ModelessCommandType.PrintMainPageStatistics; ThisApplication.thisApp.GetDockableAPIUtility().RunModelessCommand(data); m_exEvent.Raise(); }
private void B_Click(object sender, EventArgs e) { var b = sender as Button; var position = tableLayoutPanel1.GetPositionFromControl(b); int index = position.Row; AsyncExecuteCommand asCE = new AsyncExecuteCommand(methodDict[index]); ThisApp.asyncCommand = asCE; m_ExEvent.Raise(); }
public void Run(Action action, string docTitle) { this.action = action; this.docTitle = docTitle; externalEvent.Raise(); }