void OnSubmit(string value) { int parsed; if (Int32.TryParse(value, out parsed) && validNumber.Contains(parsed)) { valid = true; input.text = ""; onValidSubmit.Invoke(parsed); } else { input.ActivateInputField(); } }
protected void HandleValidSubmit() { OnValidSubmit?.Invoke(TemplatesViewModel); Console.WriteLine("OnValidSubmit"); }