private void Dt_RowDeleting(object sender, DataRowChangeEventArgs e) { IItemList list = GetDataList(scen); T p = (T)list.GetGameObject((int)e.Row["id"]); list.Remove(p); }
public virtual bool RemoveOperator(IOperator op) { var tOp = op as T; if (tOp == null) { return(false); } return(operators.Remove(tOp)); }