public void SetActionType(Control ctl, CslaFormAction value) { if (_sources.ContainsKey(ctl)) _sources[ctl].ActionType = value; else { CslaActionExtenderProperties props = new CslaActionExtenderProperties(); props.ActionType = value; _sources.Add(ctl, props); } }
public void SetActionType(ToolStripButton ctl, CslaFormAction value) { if (_sources.ContainsKey(ctl)) { _sources[ctl].ActionType = value; } else { CslaActionExtenderProperties props = new CslaActionExtenderProperties(); props.ActionType = value; _sources.Add(ctl, props); } }