protected void OnLabelEventHandler(LabelEventArgs labelEventArgs) { if (LabelEventHandler != null) { LabelEventHandler(this, labelEventArgs); } }
private void UpdateLabelText(object sender, LabelEventArgs labelEventArgs) { if (labelEventArgs.UpdateType == 1) { //labelDishText.SetTextBoxText(labelEventArgs.LabelText); lboxDish.AddText(labelEventArgs.LabelText); } else { //labelPicText.SetTextBoxText(labelEventArgs.LabelText); lboxPic.AddText(labelEventArgs.LabelText); } }