public void Commit() { if (!this.ProcessAsyncCommand()) { return; } this.ProxyValue = this.SetMethodName(EventHandlerModel.TrimName(this.proxyValue)); }
public void GenerateAndCommit() { if (!this.ProcessAsyncCommand()) { return; } string newName = EventHandlerModel.TrimName(this.proxyValue); if (string.IsNullOrEmpty(newName)) { newName = this.GenerateMethodName(); } this.ProxyValue = this.SetMethodName(newName); }