private void OnCreateClick(object sender, EventArgs e) { IFieldElement temp; CreateElement(out temp); SubscribeTo(temp); ElementCreated?.Invoke(temp); }
private T CacheWithoutListen <T>(object key, T glue) where T : IJsCsGlue { _Cacher.CacheFromCSharpValue(key, glue); ElementCreated?.Invoke(this, glue); return(glue); }