protected void Page_Init(object sender, EventArgs e) { OnCommand += new OnCommandDelegate(CommandCtrl_OnCommand); if (!String.IsNullOrEmpty(Request.Params[ClientID + "_state_json"])) { _state = Core.Utility.ParseJson(Request.Params[ClientID + "_state_json"]) as Hashtable; } }
/// <summary> /// set custom command with external method, be careful for the multiple addition(with same commandName) /// </summary> /// <param name="commandName"> /// unique cmd name /// </param> /// <param name="externalMethod"> /// triggered method /// </param> public void SetCommand(string commandName, OnCommandDelegate externalMethod) { cmds[commandName] = externalMethod; }
public void SetCommand(string commandName, OnCommandDelegate externalMethod) { GetViewModel <BaseViewModel>().SetCommand(commandName, externalMethod); }
public IRCReader(Stream stream, OnCommandDelegate onCommandCallback, CancellationToken cancel) { this.stream = stream; this.OnCommand = onCommandCallback; this.cancel = cancel; }