private void InitializeComponent() { AvaloniaXamlLoader.Load(this); this.FindControl <Button>("ResumeButton").Click += (s, e) => { ResumeClicked?.Invoke(this, e); }; }
partial void CustomInitialize() { this.AztecMenuButton_Quit.FormsControl.Click += (not, used) => QuitClicked?.Invoke(this, null); this.AztecMenuButton_Resume.FormsControl.Click += (not, used) => ResumeClicked?.Invoke(this, null); this.OptionsButtonInstance.FormsControl.Click += HandleOptionsClicked; this.OptionsBackButton.FormsControl.Click += HandleOptionsBackClicked; this.ClearDataButton.FormsControl.Click += ClearDataButtonClicked; }
internal void InvokeResumeClicked() { ResumeClicked?.Invoke(this, new EventArgs()); }