public BiuIoActionTableRow(ulong actionID, BiuIoActionHandler action) { if (0 == actionID) { throw new ArgumentException("Invalid actionID"); } if (null == action) { throw new ArgumentNullException("Invalid action"); } this.ActionID = actionID; this.AsyncAction = action; }
public BiuIoActionTableDisp AddRow(ulong actionID, BiuIoActionHandler action) { try { if (this.Rows.ContainsKey(actionID)) { return(this); } this.Rows[actionID] = new BiuIoActionTableRow(actionID, action); return(this); } catch { throw; } }