コード例 #1
0
 private void InitializeComponent()
 {
     AvaloniaXamlLoader.Load(this);
     this.FindControl <Button>("ResumeButton").Click += (s, e) =>
     {
         ResumeClicked?.Invoke(this, e);
     };
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 internal void InvokeResumeClicked()
 {
     ResumeClicked?.Invoke(this, new EventArgs());
 }