/* **************************** Event Handlers **************************** */ async private void okButton_Click(object sender, EventArgs e) { // show main form before closing this form to prevent flickers soundControl.PlayEffect(SoundControl.SoundType.DefaultEffect); await onCloseLambda(); Close(); }
private void button_OnMouseEnter(object sender, EventArgs e) { soundControl.PlayEffect(SoundControl.SoundType.HoverEffect); ((Button)sender).ForeColor = Constants.PRIMARY_COLOR; }