virtual public void Changed_State(object sender, EventArgs e) { AM <T> s = null; AM <T> ee = null; if (sender is AM <T> ) { s = sender as AM <T>; } //else s =new AM<T>(sender); if (e is AM <T> ) { ee = e as AM <T>; } //else ee = new AM<T>(e); if (IsNull(Act) == false) { Act.Get()(s, ee); } }